Ensure that the list of shared formulae is maintained while chunk-reading Xlsx Files (#1680)

* Ensure that the list of shared formulae is maintained while chunk-reading Xlsx files
This commit is contained in:
Mark Baker 2020-10-12 13:22:32 +02:00 committed by GitHub
parent 1cda811017
commit 92389c78eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
### Fixed
- Nothing.
- Ensure that the list of shared formulae is maintained when an xlsx file is chunked with readFilter[Issue #169](https://github.com/PHPOffice/PhpSpreadsheet/issues/1669).
## 1.15.0 - 2020-10-11

View File

@ -661,6 +661,9 @@ class Xlsx extends BaseReader
$coordinates = Coordinate::coordinateFromString($r);
if (!$this->getReadFilter()->readCell($coordinates[0], (int) $coordinates[1], $docSheet->getTitle())) {
if (isset($c->f)) {
$this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError');
}
++$rowIndex;
continue;