mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
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:
parent
ac25dab915
commit
840c7b9acb
|
@ -65,7 +65,7 @@ class Viewer:
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user