[gtk/matthiasc/lottie-misc-fixes: 2/3] Fix bounding boxes for axis-aligned lines
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/lottie-misc-fixes: 2/3] Fix bounding boxes for axis-aligned lines
- Date: Sat, 28 Nov 2020 17:38:40 +0000 (UTC)
commit 9518f86ba9891ffb87599b0bc7f04b806132f187
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 2d53e2503b..1dba32eb15 100644
--- a/gsk/gskpath.c
+++ b/gsk/gskpath.c
@@ -991,7 +991,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;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]