Fix gsk_spline_decompose_arc

For short segments (angle < tolerance), we were not
emitting any curve at all when decomposing arc.
This commit is contained in:
Matthias Clasen
2020-12-13 00:45:41 -05:00
parent 5a4d19644f
commit 41c6bfec67

View File

@@ -192,7 +192,7 @@ gsk_spline_decompose_arc (const graphene_point_t *center,
}
else if (ABS (step) < tolerance)
{
return TRUE;
return gsk_spline_decompose_arc_segment (center, radius, start_angle, end_angle, curve_func, user_data);
}
n_segments = arc_segments_needed (ABS (step), radius, tolerance);