[gtk/matthiasc/lottie2] Fix bounding boxes for axis-aligned lines



commit 03c863e369276a1a8f0bfea1ca7accea89f925e4
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 26 13:25:15 2020 -0500

    Fix bounding boxes for axis-aligned lines
    
    The docs say "returns FALSE if the path is known
    to be empty". Lines are not empty, so don't return
    FALSE. Even if they are axis-aligned.

 gsk/gskpath.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gskpath.c b/gsk/gskpath.c
index 76214d987a..10c93abed1 100644
--- a/gsk/gskpath.c
+++ b/gsk/gskpath.c
@@ -973,7 +973,7 @@ gsk_standard_contour_get_bounds (const GskContour *contour,
       rect_add_point (bounds, &self->points[i]);
     }
 
-  return bounds->size.width > 0 && bounds->size.height > 0;
+  return TRUE;
 }
 
 typedef struct


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