GNOME Bugzilla – Bug 347339
Units beyond image size grays out cursor position values
Last modified: 2008-01-15 13:09:31 UTC
Please describe the problem: The cursor position in the bottom left corner grays out only when a value is below 0 (expected behavior) or beyond the range of the image's pixel count, even if off the image or well within it. Steps to reproduce: 1. Use the units edittor (Xtns > unit edittor) and create a custom measurement unit. In my case, it's map coordinate units with 288 as the factor and 0 digits. 2. Create a new image (or open an existing one) with a low dpi value (like the 72dpi default). The image size or specifications doesn't matter. 3. Have the mouse cursor on the image so that the position shown in the bottom left corner of the image window is greater than the size of the image. 4. Set the units to meters and zoom out so the entire image is in view. 5. Place the mouse cursor so that it is past the right and bottom edges of the image. Actual results: On step 3, the cursor position in the bottom left corner of the image window grays out even if in the middle of the image and when the value reaches 4096, my image size in pixels. On step 5, the value never grays out and would take an extremely far out position before it grays out (and only does when it reaches 4096). Expected results: The value should only gray out when the cursor is beyond the edge of the image, never on the inside, even if the units got to 100,000 and the image size was just 64 pixels. Does this happen every time? From what I can tell, yes. Other information: I'm using custom units as I'm making a map and found this odd when it grayed out from exceeding 4096, the image size. My two screenshots shown here explain in better detail this odd behavior: http://www.ulillillia.us/temporary/unitsbeyondimagesizebug1.png - my custom units being used where 288 units make an inch (each pixel is 4 units). I'm making a selection box to help locate the cursor area. http://www.ulillillia.us/temporary/unitsbeyondimagesizebug2.png - I zoomed out a lot and made another selection box way outside the image with meters as the unit. I'm that far out and the value still isn't grayed out! http://www.ulillillia.us/temporary/unitsbeyondimagesizebug3.png - Using another case of this with the predefined units, typographical points, the same thing occurs here as well.
That was just a stupid bug. The sensitivity of the widget was set assuming pixel coordinates but the code actually used the coordinates after converting them to the currently used display unit. Fixed in the HEAD branch. I don't think it's worth backporting this to the stable branch. 2006-07-13 Sven Neumann <sven@gimp.org> * app/display/gimpstatusbar.c (gimp_statusbar_set_cursor): set the sensitivity of the cursor label before converting the coordinates to the display unit (bug #347339).