After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 620355 - Fixed selection size has 1-pixel error
Fixed selection size has 1-pixel error
Status: RESOLVED DUPLICATE of bug 635186
Product: GIMP
Classification: Other
Component: Tools
2.6.8
Other All
: Normal normal
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2010-06-02 12:49 UTC by Alexander Thomas
Modified: 2011-03-30 18:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander Thomas 2010-06-02 12:49:42 UTC
When seting rectangle or ellipse selections to a fixed size, height or width in pixels, the actual width and/or height of the selections made have a random error of -1, 0 or +1 pixels.

Steps to reproduce:
1. Choose the rectangle or ellipse select tool.
2. Set the selection to 'fixed', "3x3".
3. Make a lot of selections in an image.

Expected results:
All selections are exactly 3x3 pixels in size.

Actual results:
The selections have sizes varying between 2x2, 2x3, 2x4, 3x2, 4x4 etc.

This looks like a rounding error. At any rate, it makes creating pixel-accurate test image patterns a pain.

This bug also occurs in GIMP 2.6.7 in OS X.
Comment 1 Michael Natterer 2010-11-25 08:15:33 UTC
Indeed.
Comment 2 Enrico Schröder 2011-03-30 17:10:21 UTC
As suspected this bug seems to be related to https://bugzilla.gnome.org/show_bug.cgi?id=635186. I have proposed a patch for that bug and it fixes this one as well.
Comment 3 Michael Natterer 2011-03-30 18:16:27 UTC
Great :)

*** This bug has been marked as a duplicate of bug 635186 ***