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 70590 - selection alignment with guides is strange
selection alignment with guides is strange
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
1.x
Other Linux
: Normal normal
: ---
Assigned To: GIMP Bugs
Daniel Egger
Depends on:
Blocks:
 
 
Reported: 2002-02-05 12:57 UTC by Ulrich.Windl
Modified: 2003-04-29 17:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ulrich.Windl 2002-02-05 12:57:37 UTC
I created horizontal and vertical guides every 50 pixel, and I created a
rectangular (=square) selection of 50 pixels. Now when I try to move the
selection frame without contents, the frame cannot be positioned exactly at
a 50-pixel margin. Isn't that exactly what guides are for? I hope my
description was precise enough...
Comment 1 Sven Neumann 2002-12-11 13:24:53 UTC
I tried to reproduce this and I must admit that the behaviour is
indeed a bit strange. I was able to position the selection at the
desired place (unlike you who claimed to be unable to do that).
However the guides seem to somehow fight for the selection causing it
to jump around. I think the title of the report summarizes it quite
well, the alignment is _strange_.
Comment 2 Michael Natterer 2003-04-29 17:58:51 UTC
This was recently fixed in 1.3 CVS. It won't be fixed in 1.2
since guide alignment was conceptually broken before this change:

2003-04-17  Michael Natterer  <mitch@gimp.org>

  * app/tools/gimptoolcontrol.[ch]: added an API to specify a
  "snap_offset" and a "snap_width/height". Needed for tools which
  want to snap to a rectangle and/or a position which is not the
  current cursor position.

  * app/display/gimpdisplayshell.[ch]: removed
  gimp_display_shell_find_guide(), gimp_display_shell_snap_point()
  and gimp_display_shell_snap_rectangle().
  Added gimp_display_shell_snap_coords() which works on GimpCoords
  and gets passed the above snap offsets.

  * app/display/gimpdisplayshell-callbacks.c: use the new snap
  function, using the values from GimpToolControl.

  * app/tools/gimpcroptool.c: set snap offsets so the handles can be
  guide-aligned after creating. Fixes bug #110957.

  * app/tools/gimpeditselectiontool.c: removed snapping code (which
  was broken anyway) and set appropriate snap offsets in
  init_edit_selection().