summaryrefslogtreecommitdiff
path: root/test/meson.build
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2022-02-16 17:40:00 +0100
committerUli Schlachter <psychon@znc.in>2022-02-16 17:53:49 +0100
commit01c93c7f36d38fe655fc6daf59060c97659a4094 (patch)
tree982b071dfdd9b4a6db9ae4312a3d7ac4dfea3624 /test/meson.build
parentbdb4d058685f9ad4981b233661f4ee23e18140a5 (diff)
downloadcairo-01c93c7f36d38fe655fc6daf59060c97659a4094.tar.gz
Fix bug #535 in cairo-script
cairo-script has a special case for drawing a set of rectangles. The rectangle detection can trip over a "degenerate rectangle": Just a horizontal line. It detects the line as the beginning of a rectangle and then claims CAIRO_STATUS_INVALID_PATH_DATA when the other sides of the rectangle are missing. This commit simply changes the return value to CAIRO_INT_STATUS_UNSUPPORTED to trigger a fallback to the generate case. Test case is a straight-forward adaption from the original bug report. Signed-off-by: Uli Schlachter <psychon@znc.in> Fixes: https://gitlab.freedesktop.org/cairo/cairo/-/issues/535
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build
index c0be0e086..fe6bd468c 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -28,6 +28,7 @@ test_sources = [
'bug-361.c',
'bug-431.c',
'bug-448.c',
+ 'bug-535.c',
'bug-51910.c',
'bug-75705.c',
'bug-84115.c',