Fixed bug on load XML with column filter
`continue;` break columnID increment. Another problem can be on Merged cells.
This commit is contained in:
parent
2484a03f19
commit
30a5e4b893
|
@ -562,6 +562,7 @@ class Excel2003XML extends BaseReader implements IReader
|
|||
|
||||
if ($this->getReadFilter() !== null) {
|
||||
if (!$this->getReadFilter()->readCell($columnID, $rowID, $worksheetName)) {
|
||||
++$columnID;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -419,6 +419,7 @@ class Ods extends BaseReader implements IReader
|
|||
foreach ($rowData as $key => $cellData) {
|
||||
if ($this->getReadFilter() !== null) {
|
||||
if (!$this->getReadFilter()->readCell($columnID, $rowID, $worksheetName)) {
|
||||
++$columnID;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue