summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-11-26 13:25:15 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-11-28 12:36:47 -0500
commit9518f86ba9891ffb87599b0bc7f04b806132f187 (patch)
treef51384c2812db4819e1d204fc99cf097c0aaab3e
parente60e583bb52859e9f579052abe9f06a72618cd31 (diff)
downloadgtk+-9518f86ba9891ffb87599b0bc7f04b806132f187.tar.gz
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.
-rw-r--r--gsk/gskpath.c2
1 files changed, 1 insertions, 1 deletions
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