Fixed bug on load XML with column filter

`continue;` break columnID increment. Another problem can be on Merged cells.
This commit is contained in:
Enyby 2016-10-10 21:02:15 +03:00 committed by Adrien Crivelli
parent 2484a03f19
commit 30a5e4b893
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
2 changed files with 2 additions and 0 deletions

View File

@ -562,6 +562,7 @@ class Excel2003XML extends BaseReader implements IReader
if ($this->getReadFilter() !== null) {
if (!$this->getReadFilter()->readCell($columnID, $rowID, $worksheetName)) {
++$columnID;
continue;
}
}

View File

@ -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;
}
}