Closes #397. Fixed Viewer.show to return properly.

Viewer.show did not return a value, however ImageShow.show expected
Viewer.show to return a non-falsey value if successful. Therefor ImageShow.show
would continue to call multiple viewers.
This commit is contained in:
Thayne McCombs 2013-10-30 19:40:21 -06:00
parent ac25dab915
commit 840c7b9acb

View File

@ -65,7 +65,7 @@ class Viewer:
if base != image.mode and image.mode != "1": if base != image.mode and image.mode != "1":
image = image.convert(base) image = image.convert(base)
self.show_image(image, **options) return self.show_image(image, **options)
# hook methods # hook methods