diff --git a/changelog.txt b/changelog.txt index ba5d10bc..15d6b230 100644 --- a/changelog.txt +++ b/changelog.txt @@ -31,6 +31,7 @@ Planned for 1.9 - Feature: (MBaker) - Initial implementation of SUMIFS() function - Feature: (MBaker) - Additional codepages - Feature: (Tomino2112) Work Item GH-808 - MemoryDrawing not working in HTML writer +- General: (rentalhost) Work Item GH-575 - Excel 2007 Reader freezes because of conditional formatting 2015-04-30 (v1.8.1): diff --git a/src/PhpSpreadsheet/Reader/Excel2007.php b/src/PhpSpreadsheet/Reader/Excel2007.php index e1331c26..cf08299d 100644 --- a/src/PhpSpreadsheet/Reader/Excel2007.php +++ b/src/PhpSpreadsheet/Reader/Excel2007.php @@ -1043,8 +1043,9 @@ class Excel2007 extends BaseReader implements IReader } // Extract all cell references in $ref - foreach (\PHPExcel\Cell::extractAllCellReferencesInRange($ref) as $reference) { - $docSheet->getStyle($reference)->setConditionalStyles($conditionalStyles); + $cellBlocks = explode(' ', str_replace('$', '', strtoupper($ref))); + foreach ($cellBlocks as $cellBlock) { + $docSheet->getStyle($cellBlock)->setConditionalStyles($conditionalStyles); } } }