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-26 13:26:39 -0500
commit03c863e369276a1a8f0bfea1ca7accea89f925e4 (patch)
tree534379769d6c197f8598f6e85dfa80b7e1c6229f
parenta6e041ccedc8ea4c2b6018a8d09309cdbb2333fc (diff)
downloadgtk+-03c863e369276a1a8f0bfea1ca7accea89f925e4.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 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