Skip to content

Commit b237d34

Browse files
devX2712Progi1984
authored andcommitted
ADD-Shape RichtText preserve spelling lang while loading
When loading a ric text shape, get the spelling lang
1 parent 3f1ff7b commit b237d34

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PhpPresentation/Reader/PowerPoint2007.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,9 @@ protected function loadParagraph(XMLReader $document, DOMElement $oElement, $oSh
12461246
if ($oElementrPr->hasAttribute('cap')) {
12471247
$oText->getFont()->setCapitalization($oElementrPr->getAttribute('cap'));
12481248
}
1249+
if ($oElementrPr->hasAttribute('lang')) {
1250+
$oText->setLanguage($oElementrPr->getAttribute('lang'));
1251+
}
12491252
// Color
12501253
$oElementSrgbClr = $document->getElement('a:solidFill/a:srgbClr', $oElementrPr);
12511254
if (is_object($oElementSrgbClr) && $oElementSrgbClr->hasAttribute('val')) {

0 commit comments

Comments
 (0)