[gtk/misc-measure] Fix gsk_spline_decompose_arc



commit 568324fe42d3fc67f917662b45f02529f4d22076
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 13 00:45:41 2020 -0500

    Fix gsk_spline_decompose_arc
    
    For short segments (angle < tolerance), we were not
    emitting any curve at all when decomposing arc.

 gsk/gskspline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gskspline.c b/gsk/gskspline.c
index 8f88d1d559..5590c7f7e0 100644
--- a/gsk/gskspline.c
+++ b/gsk/gskspline.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]