mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
contour: Fixup for 1-point contours
If we return a path point for a 1-point contour, make it { n, 0, 1 }.
This commit is contained in:
parent
ad474a60c0
commit
ea7fd1ff5a
@ -470,7 +470,7 @@ gsk_standard_contour_get_closest_point (const GskContour *contour,
|
|||||||
{
|
{
|
||||||
*out_dist = dist;
|
*out_dist = dist;
|
||||||
result->idx = 0;
|
result->idx = 0;
|
||||||
result->t = 0;
|
result->t = 1;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user