Skip to content

Commit 25c99a2

Browse files
devX2712Progi1984
authored andcommitted
BUGFIX - Name, in shape, is not preserved if not a placeholder
While wrting shape, the name is not preserved if it is not a placehoder
1 parent 8e8ae7c commit 25c99a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpPresentation/Writer/PowerPoint2007/AbstractSlide.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected function writeShapeText(XMLWriter $objWriter, RichText $shape, int $sh
172172
if ($shape->isPlaceholder()) {
173173
$objWriter->writeAttribute('name', 'Placeholder for ' . $shape->getPlaceholder()->getType());
174174
} else {
175-
$objWriter->writeAttribute('name', '');
175+
$objWriter->writeAttribute('name', $shape->getName());
176176
}
177177
// Hyperlink
178178
if ($shape->hasHyperlink()) {

0 commit comments

Comments
 (0)