[gimp/gimp-2-10] app: fix brush outline position when snapping to stroke



commit 379082cd1baeb5220a88618931aeaab0e366da2b
Author: Ell <ell_se yahoo com>
Date:   Fri Feb 14 21:48:32 2020 +0200

    app: fix brush outline position when snapping to stroke
    
    In GimpPaintTool, fix the brush outline position while painting,
    when "Snap brush outline to stroke" is enabled.
    
    (cherry picked from commit ea729f6d027aca13fbd906a3c5efef563ab3f427)

 app/tools/gimppainttool-paint.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimppainttool-paint.c b/app/tools/gimppainttool-paint.c
index 81eb892ee4..88cd526b97 100644
--- a/app/tools/gimppainttool-paint.c
+++ b/app/tools/gimppainttool-paint.c
@@ -167,8 +167,8 @@ gimp_paint_tool_paint_timeout (GimpPaintTool *paint_tool)
 
   g_mutex_lock (&paint_mutex);
 
-  paint_tool->paint_x = core->cur_coords.x;
-  paint_tool->paint_y = core->cur_coords.y;
+  paint_tool->paint_x = core->last_paint.x;
+  paint_tool->paint_y = core->last_paint.y;
 
   update = gimp_drawable_flush_paint (drawable);
 


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