mirror of https://github.com/GNOME/gimp.git
Bail out early if the rectangle function is RECT_DEAD. This prevents
2007-11-05 Martin Nordholts <martinn@svn.gnome.org> * app/tools/gimprectangletool.c (gimp_rectangle_tool_motion): Bail out early if the rectangle function is RECT_DEAD. This prevents flickering. svn path=/trunk/; revision=24071
This commit is contained in:
parent
0e70d5f5a7
commit
bd1db1a1c8
|
@ -1,3 +1,9 @@
|
|||
2007-11-05 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/tools/gimprectangletool.c (gimp_rectangle_tool_motion): Bail
|
||||
out early if the rectangle function is RECT_DEAD. This prevents
|
||||
flickering.
|
||||
|
||||
2007-11-05 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/tools/gimprectangletool.c: also don't show the shell
|
||||
|
|
|
@ -1021,10 +1021,12 @@ gimp_rectangle_tool_motion (GimpTool *tool,
|
|||
options = GIMP_RECTANGLE_TOOL_GET_OPTIONS (tool);
|
||||
options_private = GIMP_RECTANGLE_OPTIONS_GET_PRIVATE (options);
|
||||
|
||||
/* This is the only case when the motion events should be ignored --
|
||||
* we're just waiting for the button release event to execute.
|
||||
/* Motion events should be ignored when we're just waiting for the
|
||||
* button release event to execute or if the user has grabbed a dead
|
||||
* area of the rectangle.
|
||||
*/
|
||||
if (private->function == RECT_EXECUTING)
|
||||
if (private->function == RECT_EXECUTING ||
|
||||
private->function == RECT_DEAD)
|
||||
return;
|
||||
|
||||
current_x = ROUND (coords->x);
|
||||
|
|
Loading…
Reference in New Issue