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

Bryce Harrington bryce at kemper.freedesktop.org
Fri Jun 26 16:31:27 PDT 2015


 src/cairo-script-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bf4f5f3a904850f0c110ca8530b1965dc969312d
Author: Bryce Harrington <bryce at osg.samsung.com>
Date:   Fri Jun 26 16:30:06 2015 -0700

    cairo-script: Return a cairo_status_t error, not FALSE
    
    This typo results in certain paths being incorrectly recorded with
    script surfaces.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=91054
    Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>

diff --git a/src/cairo-script-surface.c b/src/cairo-script-surface.c
index b73a145..a4cefde 100644
--- a/src/cairo-script-surface.c
+++ b/src/cairo-script-surface.c
@@ -1837,7 +1837,7 @@ _emit_path_boxes (cairo_script_surface_t *surface,
 
     if (! _cairo_path_fixed_iter_at_end (&iter)) {
 	_cairo_boxes_fini (&boxes);
-	return FALSE;
+	return CAIRO_STATUS_INVALID_PATH_DATA;
     }
 
     for (chunk = &boxes.chunks; chunk; chunk = chunk->next) {


More information about the cairo-commit mailing list