[cairo-commit] src/cairo-analysis-surface.c src/cairo-surface.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 1 09:18:11 UTC 2019


 src/cairo-analysis-surface.c |    4 ++--
 src/cairo-surface.c          |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 2a21ed0293055540985e74375ff462502adc9754
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Fri Feb 1 19:46:00 2019 +1030

    tags: Don't ignore tag on empty pages
    
    Issue 357

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);
 }


More information about the cairo-commit mailing list