Skip to content

Commit

Permalink
#370 : PowerPoint2007 Reader : Support for fill for image
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Sep 7, 2017
1 parent 11f3438 commit 2c3c6d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@
- ODPresentation Writer : Support for DoughnutChart - @Progi1984 GH-355
- PowerPoint2007 Writer : Support for DoughnutChart - @Progi1984 GH-355
- ODPresentation Reader : Support for fill for image - @Progi1984 GH-370
- PowerPoint2007 Reader : Support for fill for image - @Progi1984 GH-370
- ODPresentation Writer : Support for fill for transparent image - @Progi1984 GH-370
- PowerPoint2007 Writer : Support for fill for transparent image - @JewrassicPark GH-370

Expand Down
6 changes: 6 additions & 0 deletions src/PhpPresentation/Reader/PowerPoint2007.php
Expand Up @@ -733,6 +733,12 @@ protected function loadShapeDrawing(XMLReader $document, \DOMElement $node, Abst
}
}

$oElement = $document->getElement('p:spPr', $node);
if ($oElement instanceof \DOMElement) {
$oFill = $this->loadStyleFill($document, $oElement);
$oShape->setFill($oFill);
}

$oElement = $document->getElement('p:spPr/a:xfrm', $node);
if ($oElement instanceof \DOMElement) {
if ($oElement->hasAttribute('rot')) {
Expand Down

0 comments on commit 2c3c6d7

Please sign in to comment.