Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit 7fa1609

Browse files
author
MarkBaker
committed
General: (rentalhost) Work Item GH-575 - Excel 2007 Reader freezes because of conditional formatting
1 parent 79f9521 commit 7fa1609

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Classes/PHPExcel/Reader/Excel2007.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -960,8 +960,9 @@ public function load($pFilename)
960960
}
961961

962962
// Extract all cell references in $ref
963-
foreach (PHPExcel_Cell::extractAllCellReferencesInRange($ref) as $reference) {
964-
$docSheet->getStyle($reference)->setConditionalStyles($conditionalStyles);
963+
$cellBlocks = explode(' ', str_replace('$', '', strtoupper($ref)));
964+
foreach ($cellBlocks as $cellBlock) {
965+
$docSheet->getStyle($cellBlock)->setConditionalStyles($conditionalStyles);
965966
}
966967
}
967968
}

changelog.txt

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Planned for 1.8.2
3232
- Feature: (MBaker) - Initial implementation of SUMIFS() function
3333
- Feature: (MBaker) - Additional codepages
3434
- Feature: (Tomino2112) Work Item GH-808 - MemoryDrawing not working in HTML writer
35+
- General: (rentalhost) Work Item GH-575 - Excel 2007 Reader freezes because of conditional formatting
3536

3637

3738
2015-04-30 (v1.8.1):

0 commit comments

Comments
 (0)