# HG changeset patch # User Fredrik Lundh # Date 1272202303 -7200 # Node ID 1875cffafc5d4e6ea4dede59be1d7b824d783849 # Parent ee5c367a6a755bd6b14a2f0da49c58f1fe01f095 Don't mess up if multiple viewers are available. diff -r ee5c367a6a755bd6b14a2f0da49c58f1fe01f095 -r 1875cffafc5d4e6ea4dede59be1d7b824d783849 PIL/ImageShow.py --- a/PIL/ImageShow.py Sun Apr 25 15:04:40 2010 +0200 +++ b/PIL/ImageShow.py Sun Apr 25 15:31:43 2010 +0200 @@ -6,8 +6,9 @@ # # History: # 2008-04-06 fl Created +# 2010-04-25 fl Don't mess up if multiple viewers are available. # -# Copyright (c) Secret Labs AB 2008. +# Copyright (c) Secret Labs AB 2008-2010. # # See the README file for information on usage and redistribution. # @@ -63,7 +64,7 @@ if base != image.mode and image.mode != "1": image = image.convert(base) - self.show_image(image, **options) + return self.show_image(image, **options) # hook methods