gimp r27533 - in trunk: . app/tools



Author: mitch
Date: Mon Nov  3 19:31:58 2008
New Revision: 27533
URL: http://svn.gnome.org/viewvc/gimp?rev=27533&view=rev

Log:
2008-11-03  Michael Natterer  <mitch gimp org>

	Bug 559015 â Move tool gives bad information about px moved

	* app/tools/gimpeditselectiontool.c (gimp_edit_selection_tool_init):
	set cursor precision to PIXEL_BORDER because that's what the move
	tool snaps to.

	Unrelated: set CENTER_CROSS_SIZE to an odd number so it's drawn
	symmetrically.



Modified:
   trunk/ChangeLog
   trunk/app/tools/gimpeditselectiontool.c

Modified: trunk/app/tools/gimpeditselectiontool.c
==============================================================================
--- trunk/app/tools/gimpeditselectiontool.c	(original)
+++ trunk/app/tools/gimpeditselectiontool.c	Mon Nov  3 19:31:58 2008
@@ -64,7 +64,7 @@
 
 #define EDIT_SELECT_SCROLL_LOCK FALSE
 #define ARROW_VELOCITY          25
-#define CENTER_CROSS_SIZE       6
+#define CENTER_CROSS_SIZE       7
 
 
 typedef struct _GimpEditSelectionTool
@@ -150,6 +150,8 @@
 
   gimp_tool_control_set_scroll_lock (tool->control, EDIT_SELECT_SCROLL_LOCK);
   gimp_tool_control_set_motion_mode (tool->control, GIMP_MOTION_MODE_COMPRESS);
+  gimp_tool_control_set_precision   (tool->control,
+                                     GIMP_CURSOR_PRECISION_PIXEL_BORDER);
 
   edit_selection_tool->origx      = 0;
   edit_selection_tool->origy      = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]