From 2d149aad3316375185e12b7039b2a8e39eadab4d Mon Sep 17 00:00:00 2001 From: nikolaindjic Date: Wed, 16 Oct 2024 14:34:49 +0200 Subject: [PATCH] Both ints returned as value is string --- 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 ecdeda06d..7666baf52 100644 --- a/src/PhpPresentation/Reader/PowerPoint2007.php +++ b/src/PhpPresentation/Reader/PowerPoint2007.php @@ -1404,7 +1404,7 @@ protected function loadStyleColor(XMLReader $xmlReader, DOMElement $oElement): C $oColor->setRGB($oElement->getAttribute('val')); $oElementAlpha = $xmlReader->getElement('a:alpha', $oElement); if ($oElementAlpha instanceof DOMElement && $oElementAlpha->hasAttribute('val')) { - $alpha = strtoupper(dechex((int)(($oElementAlpha->getAttribute('val') / 1000) / 100) * 255)); + $alpha = strtoupper(dechex((int)((((int)$oElementAlpha->getAttribute('val')) / 1000) / 100) * 255)); $oColor->setRGB($oElement->getAttribute('val'), $alpha); }