GNOME Bugzilla – Bug 70590
selection alignment with guides is strange
Last modified: 2003-04-29 17:58:51 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...
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_.
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().