We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02bd670 commit 45db076Copy full SHA for 45db076
lib/Varien/Image/Adapter/Gd2.php
@@ -268,7 +268,7 @@ private function _fillBackgroundColor(&$imageResourceTo)
268
// fill image with indexed non-alpha transparency
269
elseif (false !== $transparentIndex) {
270
$transparentColor = false;
271
- if ($transparentIndex >=0 && $transparentIndex <= imagecolorstotal($this->_imageHandler)) {
+ if ($transparentIndex >=0 && $transparentIndex < imagecolorstotal($this->_imageHandler)) {
272
list($r, $g, $b) = array_values(imagecolorsforindex($this->_imageHandler, $transparentIndex));
273
$transparentColor = imagecolorallocate($imageResourceTo, $r, $g, $b);
274
}
0 commit comments