[gimp/gimp-2-8] Bug 699185 - when moving the pointer fast out of guide scope, do not keep it highlighted.



commit a98b6581e6c2add3d6cb895d7b71d581c236b361
Author: Jehan <jehan girinstud io>
Date:   Mon Apr 29 07:03:20 2013 +0900

    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.
    (cherry picked from commit 3496e178ef63712275dcbbfe559d1a2f42a8141d)

 app/tools/gimpdrawtool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index 646ba38..f8dc5b3 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;
 


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