[cairo-commit] Branch '1.0' - src/cairo.c
Carl Worth
cworth at kemper.freedesktop.org
Wed Mar 8 08:20:47 PST 2006
src/cairo.c | 3 +++
1 files changed, 3 insertions(+)
New commits:
diff-tree 46646cf2b1e392caced989a9adb65b50eac86ba3 (from 30d4aa863124075c59e8ebf2ce2c085d64290347)
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
(cherry picked from 1cffb39ff04bbb29bb070e42c51aa1ae6aaf5a4c commit)
diff --git a/src/cairo.c b/src/cairo.c
index 5754283..d09c561 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