summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2019-02-01 19:46:00 +1030
committerAdrian Johnson <ajohnson@redneon.com>2019-02-01 19:47:00 +1030
commit2a21ed0293055540985e74375ff462502adc9754 (patch)
treea11ec2609201d7dd8e2bfd97d964246d3926df17
parentef99c3bf3001dbd55e32c1f2c54d7ebfeb98569a (diff)
tags: Don't ignore tag on empty pages
Issue 357
-rw-r--r--src/cairo-analysis-surface.c4
-rw-r--r--src/cairo-surface.c1
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);
}