diff options
author | Uli Schlachter <psychon@znc.in> | 2011-02-12 20:49:02 +0100 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2011-02-12 21:12:46 +0100 |
commit | 7ad3aebbe612ef560d4a73f85db226c8e7caa4b2 (patch) | |
tree | b89a222f34ca411f6a340067ded32193d2b9b556 /test | |
parent | 788bdec628ca004a73446414961f74e2443a8b06 (diff) |
arc-looping-dash: Add a missing cairo_restore ()
This test called cairo_save () without restoring again. Normally, this doesn't
cause a problem. However, when cairo-test-suite is called with "-a", it also
executes the tests on a similar surface. This then caused
cairo_pop_group_to_source to be called on a cairo_save state which causes a
CAIRO_STATUS_INVALID_RESTORE since commit 5d95ae924ed1520.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'test')
-rw-r--r-- | test/arc-looping-dash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/arc-looping-dash.c b/test/arc-looping-dash.c index 2ad55f6e..ff5556a5 100644 --- a/test/arc-looping-dash.c +++ b/test/arc-looping-dash.c @@ -66,6 +66,8 @@ draw (cairo_t *cr, int width, int height) cairo_set_dash (cr, dashes, 2, 0); cairo_stroke (cr); + cairo_restore (cr); + return CAIRO_TEST_SUCCESS; } |