mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-25 23:06:03 +03:00
Merge pull request #256 from trik/develop
Excel 2007 fail with headers and footers containing multiple images
This commit is contained in:
commit
acadff4b7b
@ -1354,10 +1354,10 @@ class PHPExcel_Reader_Excel2007 extends PHPExcel_Reader_Abstract implements PHPE
|
||||
$hfImages = array();
|
||||
|
||||
$shapes = $vmlDrawing->xpath('//v:shape');
|
||||
foreach ($shapes as $shape) {
|
||||
foreach ($shapes as $idx => $shape) {
|
||||
$shape->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml');
|
||||
$imageData = $shape->xpath('//v:imagedata');
|
||||
$imageData = $imageData[0];
|
||||
$imageData = $imageData[$idx];
|
||||
|
||||
$imageData = $imageData->attributes('urn:schemas-microsoft-com:office:office');
|
||||
$style = self::toCSSArray( (string)$shape['style'] );
|
||||
|
Loading…
Reference in New Issue
Block a user