Fix variable name

Wrong variable name was used for transparency manipulations.
This commit is contained in:
Michal Čihař 2014-04-07 17:36:36 +02:00
parent 665a6360f7
commit 07650be832

View File

@ -807,7 +807,7 @@ class Image:
new_im = self._new(im)
if delete_trns:
#crash fail if we leave a bytes transparency in an rgb/l mode.
del(new.info['transparency'])
del(new_im.info['transparency'])
if trns is not None:
if new_im.mode == 'P':
try: