[Pkg-mozext-commits] [adblock-plus] 07/41: Issue 1883 - Fixed IndexError introduced by previous commit
David Prévot
taffit at moszumanska.debian.org
Wed Mar 18 18:21:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit e8169ba3435a242a309fcc02e0a69161e4afd77f
Author: Sebastian Noack <sebastian at adblockplus.org>
Date: Tue Jan 27 17:31:42 2015 +0100
Issue 1883 - Fixed IndexError introduced by previous commit
---
imageConversion.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/imageConversion.py b/imageConversion.py
index 6c32773..4b9d831 100644
--- a/imageConversion.py
+++ b/imageConversion.py
@@ -27,7 +27,7 @@ def get_alpha(image):
# value of Image.info['transparency'] since in some cases it might be an
# unparsed string instead an int indicating the value of transparent pixels.
if image.mode == 'P' and 'transparency' in image.info:
- return image.convert('RGBA').split()[4]
+ return image.convert('RGBA').split()[3]
def load_image(path):
image = Image.open(path)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list