Skip to content

Commit

Permalink
Both ints returned as value is string
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaindjic committed Oct 16, 2024
1 parent 4fdd7a0 commit 2d149aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpPresentation/Reader/PowerPoint2007.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2d149aa

Please sign in to comment.