General: (rentalhost) Work Item GH-575 - Excel 2007 Reader freezes because of conditional formatting
This commit is contained in:
		
							parent
							
								
									2e0e9b2398
								
							
						
					
					
						commit
						710ab744db
					
				| @ -31,6 +31,7 @@ Planned for 1.9 | |||||||
| - Feature:  (MBaker)                            - Initial implementation of SUMIFS() function | - Feature:  (MBaker)                            - Initial implementation of SUMIFS() function | ||||||
| - Feature:  (MBaker)                            - Additional codepages | - Feature:  (MBaker)                            - Additional codepages | ||||||
| - Feature:  (Tomino2112)      Work Item GH-808  - MemoryDrawing not working in HTML writer | - 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): | 2015-04-30 (v1.8.1): | ||||||
|  | |||||||
| @ -1043,8 +1043,9 @@ class Excel2007 extends BaseReader implements IReader | |||||||
|                                     } |                                     } | ||||||
| 
 | 
 | ||||||
|                                     // Extract all cell references in $ref
 |                                     // Extract all cell references in $ref
 | ||||||
|                                     foreach (\PHPExcel\Cell::extractAllCellReferencesInRange($ref) as $reference) { |                                     $cellBlocks = explode(' ', str_replace('$', '', strtoupper($ref))); | ||||||
|                                         $docSheet->getStyle($reference)->setConditionalStyles($conditionalStyles); |                                     foreach ($cellBlocks as $cellBlock) { | ||||||
|  |                                         $docSheet->getStyle($cellBlock)->setConditionalStyles($conditionalStyles); | ||||||
|                                     } |                                     } | ||||||
|                                 } |                                 } | ||||||
|                             } |                             } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 MarkBaker
						MarkBaker