Fixing the Bug reading the ODS Sheetnames (#389)

incorrect sequence of arguments creating a Sheet in
Reader/ODS/SheetIterator::current()
Tests added.
This commit is contained in:
someson authored and Adrien Loison committed 2017-02-28 10:25:25 +11:00
1 parent 1ce931a424
commit 36d3596f83
3 files changed
+52 -1

No files matched your search

+1 -1
View File
@@ -116,7 +116,7 @@ class SheetIterator implements IteratorInterface
$escapedSheetName = $this->xmlReader->getAttribute(self::XML_ATTRIBUTE_TABLE_NAME);
$sheetName = $this->escaper->unescape($escapedSheetName);
return new Sheet($this->xmlReader, $sheetName, $this->currentSheetIndex, $this->options);
return new Sheet($this->xmlReader, $this->currentSheetIndex, $sheetName, $this->options);
}
/**