Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/PhpPresentation/Reader/PowerPoint2007.php
Original file line number Diff line number Diff line change
Expand Up @@ -1511,9 +1511,9 @@ protected function loadParagraph(XMLReader $document, DOMElement $oElement, $oSh
}
if ('a:r' == $oSubElement->tagName) {
$oElementrPr = $document->getElement('a:rPr', $oSubElement);
if (is_object($oElementrPr)) {
$oText = $oParagraph->createTextRun();

$oText = $oParagraph->createTextRun();
if (is_object($oElementrPr)) {
if ($oElementrPr->hasAttribute('b')) {
$att = $oElementrPr->getAttribute('b');
$oText->getFont()->setBold('true' == $att || '1' == $att ? true : false);
Expand Down Expand Up @@ -1591,10 +1591,9 @@ protected function loadParagraph(XMLReader $document, DOMElement $oElement, $oSh
$oText->getFont()->setCharset((int) $oElementFont->getAttribute('charset'));
}
}

$oSubSubElement = $document->getElement('a:t', $oSubElement);
$oText->setText($oSubSubElement->nodeValue);
}
$oSubSubElement = $document->getElement('a:t', $oSubElement);
$oText->setText($oSubSubElement->nodeValue);
}
}
}
Expand Down