diff options
author | Uli Schlachter <psychon@znc.in> | 2022-02-16 17:40:00 +0100 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2022-02-16 17:53:49 +0100 |
commit | 01c93c7f36d38fe655fc6daf59060c97659a4094 (patch) | |
tree | 982b071dfdd9b4a6db9ae4312a3d7ac4dfea3624 /test/reference | |
parent | bdb4d058685f9ad4981b233661f4ee23e18140a5 (diff) | |
download | cairo-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.png | bin | 0 -> 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 Binary files differnew file mode 100644 index 000000000..7d5589c1d --- /dev/null +++ b/test/reference/bug-535.ref.png |