From a6e041ccedc8ea4c2b6018a8d09309cdbb2333fc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 26 Nov 2020 12:16:36 -0500 Subject: [PATCH] Fix offset calculation for curves We were returning a wrong offset that made the offset 'dance around' the point we returned. --- gsk/gskpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsk/gskpath.c b/gsk/gskpath.c index da6898e710..76214d987a 100644 --- a/gsk/gskpath.c +++ b/gsk/gskpath.c @@ -1224,7 +1224,7 @@ gsk_standard_contour_get_closest_point (const GskContour *contour, if (out_pos) *out_pos = p; if (out_offset) - *out_offset = measure->start + (measure->end - measure->start) * found_progress; + *out_offset = measure->start + (measure->end - measure->start) * progress; if (out_tangent) *out_tangent = t; result = TRUE;