summaryrefslogtreecommitdiff
path: root/test/reference
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/reference
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/reference')
-rw-r--r--test/reference/bug-535.ref.pngbin0 -> 87 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/test/reference/bug-535.ref.png b/test/reference/bug-535.ref.png
new file mode 100644
index 000000000..7d5589c1d
--- /dev/null
+++ b/test/reference/bug-535.ref.png
Binary files differ