From f3f1fe69daf08bca79dd09d0b53c830fbfd4ea2c Mon Sep 17 00:00:00 2001 From: nikolaindjic Date: Wed, 16 Oct 2024 14:29:00 +0200 Subject: [PATCH] Quick fix --- src/PhpPresentation/Reader/PowerPoint2007.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpPresentation/Reader/PowerPoint2007.php b/src/PhpPresentation/Reader/PowerPoint2007.php index 24ff004fe..a32de2a90 100644 --- a/src/PhpPresentation/Reader/PowerPoint2007.php +++ b/src/PhpPresentation/Reader/PowerPoint2007.php @@ -1214,7 +1214,7 @@ protected function loadParagraph(XMLReader $document, DOMElement $oElement, $oSh } $oElementSpacingBefore = $document->getElement('a:spcBef/a:spcPts', $oSubElement); if ($oElementSpacingBefore instanceof DOMElement) { - $oParagraph->setSpacingBefore((int)($oElementSpacingBefore->getAttribute('val') / 100)); + $oParagraph->setSpacingBefore((int)((int)$oElementSpacingBefore->getAttribute('val') / 100)); } $oElementSpacingAfter = $document->getElement('a:spcAft/a:spcPts', $oSubElement); if ($oElementSpacingAfter instanceof DOMElement) {