[gimp/gimp-2-10] Issue #4328 - Distorted path of an open/imported circle...



commit 3f2e17ca6ebede51213cad251f927cadb7be5807
Author: Michael Natterer <mitch gimp org>
Date:   Sat Mar 7 14:47:08 2020 +0100

    Issue #4328 - Distorted path of an open/imported circle...
    
    ...from an svg file
    
    gimp_bezier_stroke_new_ellipse(): need to interpolate the path's head
    and tail, not its tail and tail. Spotted by Massimo.
    
    (cherry picked from commit 27e78849a2b737655134d09452fc02e36b03fb50)

 app/vectors/gimpbezierstroke.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/vectors/gimpbezierstroke.c b/app/vectors/gimpbezierstroke.c
index df4f88ca97..0fd1256bed 100644
--- a/app/vectors/gimpbezierstroke.c
+++ b/app/vectors/gimpbezierstroke.c
@@ -2277,7 +2277,7 @@ gimp_bezier_stroke_new_ellipse (const GimpCoords *center,
   gimp_coords_mix (1.0,    &p3, -circlemagic, &dx, &p2);
   gimp_bezier_stroke_cubicto (stroke, &p1, &p2, &p3);
 
-  handle = g_queue_peek_tail (stroke->anchors);
+  handle = g_queue_peek_head (stroke->anchors);
   gimp_coords_mix (1.0,    &p3,  circlemagic, &dx, &handle->position);
 
   gimp_stroke_close (stroke);


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