Skip to content

Commit

Permalink
FIXED : #29 : Sample_04_InMemoryImage.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jul 1, 2014
1 parent 886eb53 commit f61ed63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpPowerpoint/Writer/ODPresentation/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ public function writePic(XMLWriter $objWriter, AbstractDrawing $shape, $shapeId)
}
// draw:image
$objWriter->startElement('draw:image');
if($shape instanceof Drawing){
if ($shape instanceof Drawing) {
$objWriter->writeAttribute('xlink:href', 'Pictures/' . md5($shape->getPath()) . '.' . $shape->getExtension());
} elseif($shape instanceof MemoryDrawing){
} elseif($shape instanceof MemoryDrawing) {
$objWriter->writeAttribute('xlink:href', 'Pictures/' . $shape->getIndexedFilename());
}
$objWriter->writeAttribute('xlink:type', 'simple');
Expand Down

0 comments on commit f61ed63

Please sign in to comment.