Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not ignore viewer if ImageShow.register order is zero #4706

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

radarhere
Copy link
Member

Suggested by #4643 (comment)

If you set order to zero when registering an ImageShow viewer, like so, ImageShow.register(viewer, order=0), the viewer is silently ignored.

This PR changes that to treat it as a negative number instead, inserting it at the beginning of the list of viewers.

@radarhere radarhere changed the title Do not ignore viewer if order is zero when registering for ImageShow Do not ignore viewer if ImageShow.register order is zero Jun 18, 2020
@hugovk hugovk merged commit 095177f into python-pillow:master Jun 18, 2020
@hugovk
Copy link
Member

hugovk commented Jun 18, 2020

Thank you!

@radarhere radarhere deleted the imageshow branch June 18, 2020 13:17
nulano added a commit to nulano/Pillow that referenced this pull request Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants