diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2019-02-01 19:46:00 +1030 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2019-03-12 10:11:51 -0600 |
commit | 5b1fb51e77e596b20331d6bda0e56860f9b35de4 (patch) | |
tree | f86faf491eb582c9963d26e64d5aaec8db96ec04 | |
parent | 79945b67195e70be98136b1aebc941d2610eeb08 (diff) |
tags: Don't ignore tag on empty pages
Issue 357
-rw-r--r-- | src/cairo-analysis-surface.c | 4 | ||||
-rw-r--r-- | src/cairo-surface.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cairo-analysis-surface.c b/src/cairo-analysis-surface.c index c4f9a6d35..d113c5fac 100644 --- a/src/cairo-analysis-surface.c +++ b/src/cairo-analysis-surface.c @@ -777,8 +777,8 @@ _cairo_analysis_surface_tag (void *abstract_surface, ctm, ctm_inverse, clip); - if (_cairo_int_status_is_error (backend_status)) - return backend_status; + if (backend_status == CAIRO_INT_STATUS_SUCCESS) + surface->has_supported = TRUE; } return backend_status; diff --git a/src/cairo-surface.c b/src/cairo-surface.c index 596ca250d..c30f84087 100644 --- a/src/cairo-surface.c +++ b/src/cairo-surface.c @@ -2952,6 +2952,7 @@ _cairo_surface_tag (cairo_surface_t *surface, status = surface->backend->tag (surface, begin, tag_name, attributes, source, stroke_style, ctm, ctm_inverse, clip); + surface->is_clear = FALSE; return _cairo_surface_set_error (surface, status); } |