From bd1db1a1c844d8b881f83ee4022d4e1d3cbcff4f Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Mon, 5 Nov 2007 20:24:11 +0000 Subject: [PATCH] Bail out early if the rectangle function is RECT_DEAD. This prevents 2007-11-05 Martin Nordholts * 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 --- ChangeLog | 6 ++++++ app/tools/gimprectangletool.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 88d537c861..142a8dd589 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-05 Martin Nordholts + + * 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 * app/tools/gimprectangletool.c: also don't show the shell diff --git a/app/tools/gimprectangletool.c b/app/tools/gimprectangletool.c index 1f21282b4a..3cf9677c00 100644 --- a/app/tools/gimprectangletool.c +++ b/app/tools/gimprectangletool.c @@ -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);