Issue #4328: Distorted path of an open/imported circle from an svg file.

Undoing the apparent mistake (revert 27e78849a2) and changing the 2nd
occurrence instead.
This commit is contained in:
Liam Quin 2020-08-02 22:08:34 +02:00 committed by Jehan
parent 154756326a
commit be0e63aa1c
1 changed files with 2 additions and 2 deletions

View File

@ -2323,7 +2323,7 @@ gimp_bezier_stroke_new_ellipse (const GimpCoords *center,
gimp_coords_mix (1.0, center, 1.0, &dx, &p1);
stroke = gimp_bezier_stroke_new_moveto (&p1);
handle = g_queue_peek_tail (stroke->anchors);
handle = g_queue_peek_head (stroke->anchors);
gimp_coords_mix (1.0, &p1, -circlemagic, &dy, &handle->position);
gimp_coords_mix (1.0, &p1, circlemagic, &dy, &p1);
@ -2341,7 +2341,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_head (stroke->anchors);
handle = g_queue_peek_tail (stroke->anchors);
gimp_coords_mix (1.0, &p3, circlemagic, &dx, &handle->position);
gimp_stroke_close (stroke);