Merge branch 'master' into Ods-Reader-Worksheet-Visibility
This commit is contained in:
commit
2f3892788f
|
|
@ -34,7 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
|
|||
|
||||
- Xls Reader resolving absolute named ranges to relative ranges [Issue #2826](https://github.com/PHPOffice/PhpSpreadsheet/issues/2826) [PR #2827](https://github.com/PHPOffice/PhpSpreadsheet/pull/2827)
|
||||
- Null value handling in the Excel Math/Trig PRODUCT() function [Issue #2833](https://github.com/PHPOffice/PhpSpreadsheet/issues/2833) [PR #2834](https://github.com/PHPOffice/PhpSpreadsheet/pull/2834)
|
||||
|
||||
- Invalid Print Area defined in Xlsx corrupts internal storage of print area [Issue #2848](https://github.com/PHPOffice/PhpSpreadsheet/issues/2848) [PR #2849](https://github.com/PHPOffice/PhpSpreadsheet/pull/2849)
|
||||
|
||||
## 1.23.0 - 2022-04-24
|
||||
|
||||
|
|
|
|||
|
|
@ -1530,13 +1530,18 @@ class Xlsx extends BaseReader
|
|||
$rangeSets = preg_split("/('?(?:.*?)'?(?:![A-Z0-9]+:[A-Z0-9]+)),?/", $extractedRange, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
|
||||
$newRangeSets = [];
|
||||
foreach ($rangeSets as $rangeSet) {
|
||||
[$sheetName, $rangeSet] = Worksheet::extractSheetTitle($rangeSet, true);
|
||||
[, $rangeSet] = Worksheet::extractSheetTitle($rangeSet, true);
|
||||
if (empty($rangeSet)) {
|
||||
continue;
|
||||
}
|
||||
if (strpos($rangeSet, ':') === false) {
|
||||
$rangeSet = $rangeSet . ':' . $rangeSet;
|
||||
}
|
||||
$newRangeSets[] = str_replace('$', '', $rangeSet);
|
||||
}
|
||||
if (count($newRangeSets) > 0) {
|
||||
$docSheet->getPageSetup()->setPrintArea(implode(',', $newRangeSets));
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue