Skip to content

Commit 6e1a265

Browse files
committed
#28 : ODPresentation Writer : Ability to set auto shrink text
1 parent 03bf65f commit 6e1a265

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpPowerpoint/Writer/ODPresentation/Content.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ public function writePart(PhpPowerpoint $pPHPPowerPoint)
120120
// style:graphic-properties
121121
$objWriter->startElement('style:graphic-properties');
122122
if (is_bool($shape->hasAutoShrinkVertical())) {
123-
$objWriter->writeAttribute('draw:auto-grow-height', var_export($shape->getAutoShrinkVertical(), true));
123+
$objWriter->writeAttribute('draw:auto-grow-height', var_export($shape->hasAutoShrinkVertical(), true));
124124
}
125125
if (is_bool($shape->hasAutoShrinkHorizontal())) {
126-
$objWriter->writeAttribute('draw:auto-grow-width', var_export($shape->getAutoShrinkHorizontal(), true));
126+
$objWriter->writeAttribute('draw:auto-grow-width', var_export($shape->hasAutoShrinkHorizontal(), true));
127127
}
128128
switch ($shape->getFill()->getFillType()){
129129
case Fill::FILL_NONE:

0 commit comments

Comments
 (0)