Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion docs/changes/1.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

## Enhancements
- `phpoffice/phpspreadsheet`: Allow version 5.0 by [@seanlynchwv](http://github.com/seanlynchwv) in [#879](https://github.com/PHPOffice/PHPPresentation/pull/879)
- PowerPoint2007 Reader: Added support for loading text run without properties by [@Wilkolicious](http://github.com/Wilkolicious) in [#871](https://github.com/PHPOffice/PHPPresentation/pull/871)

## Bug fixes

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