[gimp] Bug 777749 - Paths Tool: better drawing of edited path after a visibility change



commit da84c612a7e31f4335cd89cd7e1b76a7a339c666
Author: Thomas Manni <thomas manni free fr>
Date:   Wed Jan 25 16:00:22 2017 +0100

    Bug 777749 - Paths Tool: better drawing of edited path after a visibility change
    
    force a redraw without adding the aliased gray path

 app/tools/gimpvectortool.c |   24 +++---------------------
 1 files changed, 3 insertions(+), 21 deletions(-)
---
diff --git a/app/tools/gimpvectortool.c b/app/tools/gimpvectortool.c
index c5c81df..afe3445 100644
--- a/app/tools/gimpvectortool.c
+++ b/app/tools/gimpvectortool.c
@@ -1534,28 +1534,10 @@ gimp_vector_tool_vectors_visible (GimpVectors    *vectors,
 {
   GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (vector_tool);
 
-  if (gimp_draw_tool_is_active (draw_tool) && draw_tool->paused_count == 0)
+  if (gimp_draw_tool_is_active (draw_tool))
     {
-      GimpStroke *stroke = NULL;
-
-      while ((stroke = gimp_vectors_stroke_get_next (vectors, stroke)))
-        {
-          GArray   *coords;
-          gboolean  closed;
-
-          coords = gimp_stroke_interpolate (stroke, 1.0, &closed);
-
-          if (coords)
-            {
-              if (coords->len)
-                gimp_draw_tool_add_strokes (draw_tool,
-                                            &g_array_index (coords,
-                                                            GimpCoords, 0),
-                                            coords->len, FALSE);
-
-              g_array_free (coords, TRUE);
-            }
-        }
+      gimp_draw_tool_pause (draw_tool);
+      gimp_draw_tool_resume (draw_tool);
     }
 }
 


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