Fix offset calculation for curves

We were returning a wrong offset that made the offset
'dance around' the point we returned.
This commit is contained in:
Matthias Clasen
2020-11-26 12:16:36 -05:00
parent 4ce7eedc16
commit a6e041cced

View File

@@ -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;