Skip to content

Commit

Permalink
#28 : ODPresentation Writer : Ability to set auto shrink text
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Aug 4, 2014
1 parent 03bf65f commit 6e1a265
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 @@ -120,10 +120,10 @@ public function writePart(PhpPowerpoint $pPHPPowerPoint)
// style:graphic-properties
$objWriter->startElement('style:graphic-properties');
if (is_bool($shape->hasAutoShrinkVertical())) {
$objWriter->writeAttribute('draw:auto-grow-height', var_export($shape->getAutoShrinkVertical(), true));
$objWriter->writeAttribute('draw:auto-grow-height', var_export($shape->hasAutoShrinkVertical(), true));
}
if (is_bool($shape->hasAutoShrinkHorizontal())) {
$objWriter->writeAttribute('draw:auto-grow-width', var_export($shape->getAutoShrinkHorizontal(), true));
$objWriter->writeAttribute('draw:auto-grow-width', var_export($shape->hasAutoShrinkHorizontal(), true));
}
switch ($shape->getFill()->getFillType()){
case Fill::FILL_NONE:
Expand Down

0 comments on commit 6e1a265

Please sign in to comment.