diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-11-26 13:25:15 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-11-26 13:26:39 -0500 |
commit | 03c863e369276a1a8f0bfea1ca7accea89f925e4 (patch) | |
tree | 534379769d6c197f8598f6e85dfa80b7e1c6229f | |
parent | a6e041ccedc8ea4c2b6018a8d09309cdbb2333fc (diff) | |
download | gtk+-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.c | 2 |
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 |