[cairo-commit] src/cairo.c

Carl Worth cworth at kemper.freedesktop.org
Wed Mar 8 08:19:19 PST 2006


 src/cairo.c |    3 +++
 1 files changed, 3 insertions(+)

New commits:
diff-tree 1cffb39ff04bbb29bb070e42c51aa1ae6aaf5a4c (from 3333bba82d26a0b11961af3cb5c29c79a1a0d07b)
Author: Carl Worth <cworth at cworth.org>
Date:   Wed Mar 8 08:16:49 2006 -0800

    cairo_show_glyphs: Do nothing if num_glyphs == 0

diff --git a/src/cairo.c b/src/cairo.c
index 96cd504..d0dd4ec 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -2155,6 +2155,9 @@ cairo_show_glyphs (cairo_t *cr, cairo_gl
     if (cr->status)
 	return;
 
+    if (num_glyphs == 0)
+	return;
+
     cr->status = _cairo_gstate_show_glyphs (cr->gstate, glyphs, num_glyphs);
     if (cr->status)
 	_cairo_set_error (cr, cr->status);


More information about the cairo-commit mailing list