From 3496e178ef63712275dcbbfe559d1a2f42a8141d Mon Sep 17 00:00:00 2001 From: Jehan Date: Mon, 29 Apr 2013 07:03:20 +0900 Subject: [PATCH] Bug 699185 - when moving the pointer fast out of guide scope, do not keep it highlighted. When a drawing timeout happens too close from the previous drawing, we don't want to cancel the timeout function (FALSE), but simply retry later (TRUE). In our case in particular, if you move your pointer very fast over a guide, the highlighting drawing was happening less than MINIMUM_DRAW_INTERVAL before the un-highlighting drawing, hence canceling the later, which caused the drawing bug. --- app/tools/gimpdrawtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c index 48b66148e9..da8cb6f655 100644 --- a/app/tools/gimpdrawtool.c +++ b/app/tools/gimpdrawtool.c @@ -184,7 +184,7 @@ gimp_draw_tool_draw_timeout (GimpDrawTool *draw_tool) /* keep the timeout running if the last drawing just happened */ if ((now - draw_tool->last_draw_time) <= MINIMUM_DRAW_INTERVAL) - return FALSE; + return TRUE; draw_tool->draw_timeout = 0;