| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The previous implementation was incorrect and would yield a double entry in the cmap combobox.
| for label in imagelabels: | ||
| image = imagedict[label] | ||
| cmap = image.get_cmap() | ||
| if cmap not in cm.cmap_d: |
There was a problem hiding this comment.
would it be better to check that cmap.name not in cm.cmap_d?
Sorry, something went wrong.
There was a problem hiding this comment.
I thought someone could accidentally create a custom cmap with the same name as one in cmap_d (although it's a pretty theoretical risk and it'd make the combobox awkward anyways), so checking on cmap identity should be safer.
Sorry, something went wrong.
|
👍 on this. RE my comment; I do not have an opinion one way or the other, just curious why you picked this implementation. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The previous implementation (#5469) was incorrect and would yield a double entry
in the cmap combobox.