From ea7fd1ff5a5821973d63b51d5337535dada427cc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 4 Sep 2023 00:47:17 +0200 Subject: [PATCH] contour: Fixup for 1-point contours If we return a path point for a 1-point contour, make it { n, 0, 1 }. --- gsk/gskcontour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsk/gskcontour.c b/gsk/gskcontour.c index 591ada2624..00884ab9ac 100644 --- a/gsk/gskcontour.c +++ b/gsk/gskcontour.c @@ -470,7 +470,7 @@ gsk_standard_contour_get_closest_point (const GskContour *contour, { *out_dist = dist; result->idx = 0; - result->t = 0; + result->t = 1; return TRUE; }