-
Jehan authored
Do not take "Sample merge" into account when picking colors in a single-layer image. The reason is to be able to get the index information on indexed image. This information is lost otherwise when using the whole image as a pickable. Of course, other exceptions are possible, when you'd pick exactly a colormap color, but I don't think it's worth making the code extra-complicated for these. My previous commit will anyway already select the right color in the colormap on common cases. Though it will still fail to select the right index when several indexes store the same color, on a multi-layer image, if you check "Sample merged" while the right index was not the first one amongst the duplicates.
31b2b55b