Skip to content

Commit

Permalink
#89 : Bugfix for opening PPTX on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jan 17, 2016
1 parent 706cfd2 commit f201ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpPresentation/Writer/PowerPoint2007/Slide.php
Original file line number Diff line number Diff line change
Expand Up @@ -854,10 +854,10 @@ private function writeParagraphs(XMLWriter $objWriter, $paragraphs)
$objWriter->startElement('a:rPr');

// Bold
$objWriter->writeAttribute('b', ($element->getFont()->isBold() ? 'true' : 'false'));
$objWriter->writeAttribute('b', ($element->getFont()->isBold() ? '1' : '0'));

// Italic
$objWriter->writeAttribute('i', ($element->getFont()->isItalic() ? 'true' : 'false'));
$objWriter->writeAttribute('i', ($element->getFont()->isItalic() ? '1' : '0'));

// Strikethrough
$objWriter->writeAttribute('strike', ($element->getFont()->isStrikethrough() ? 'sngStrike' : 'noStrike'));
Expand Down

0 comments on commit f201ae3

Please sign in to comment.