GNOME Bugzilla – Bug 319683
select by colour broken on GRAYA drawables/projection
Last modified: 2008-01-15 14:04:48 UTC
Distribution/Version: Mandriva Cooker see sample image attached... [1] choose the Colour Picker tool (shift-O by default) [2] in the colour picker tool options, choose a threshold of (say) 16, and select Sample merged. Other settings seem to make no difference to this bug. [3] click on the black horizontal bar near the top of the sample image. [4] Note that parts of the image are not highlighted. See the attachment "bug-screenshot.png", which has a red circle around part of the image. If you use the colour picker in here you'll see that the area is black, but if you go back to select-by-colour and hold down shift, and click in there (in the original image, not the screen shot!) that part of the image is still not selected, including the pixel you clicked on with the select tool!
Created attachment 53857 [details] bug.png: a test case (sample image).
Created attachment 53858 [details] screenshot after using colour selection tool
Actually it depends on the alpha channel. GRAYA doesn't work, everything else does. Changing summary accordingly.
Fixed in my tree, will commit tomorrow.
Fixed in both branches: 2005-10-25 Michael Natterer <mitch@gimp.org> * app/core/gimpimage-contiguous-region.c (struct ContinuousRegionData) (gimp_image_contiguous_region_by_color) (contiguous_region_by_color): the color samples are always RGB or RGBA, so always compare 3 or 4 bytes of pixel data, and not just the number of bytes of the drawable/projection. Fixes "select by color" on GRAYA (bug #319683).