[cairo-commit] src/cairo-pdf-operators.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Thu Jul 3 03:58:36 PDT 2008


 src/cairo-pdf-operators.c |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 37ed55acef5ff9d6d053cfb76af8bdcd1f91edd5
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Thu Jul 3 20:27:50 2008 +0930

    Add missing status checks

diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c
index abaa4d0..a954282 100644
--- a/src/cairo-pdf-operators.c
+++ b/src/cairo-pdf-operators.c
@@ -1348,6 +1348,9 @@ _cairo_pdf_operators_show_text_glyphs (cairo_pdf_operators_t	  *pdf_operators,
 							clusters[i].num_glyphs,
 							backward,
 							scaled_font);
+	    if (status)
+		return status;
+
 	    cur_text += clusters[i].num_bytes;
 	    if (!backward)
 		cur_glyph += clusters[i].num_glyphs;
@@ -1361,6 +1364,8 @@ _cairo_pdf_operators_show_text_glyphs (cairo_pdf_operators_t	  *pdf_operators,
 							1,
 							FALSE,
 							scaled_font);
+	    if (status)
+		return status;
 	}
     }
 


More information about the cairo-commit mailing list