summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-03-08 08:16:49 -0800
committerCarl Worth <cworth@cworth.org>2006-03-08 08:19:02 -0800
commit46646cf2b1e392caced989a9adb65b50eac86ba3 (patch)
tree3e65020e3ef6e96d1dca0f171cdca11bc94abdbd
parent30d4aa863124075c59e8ebf2ce2c085d64290347 (diff)
downloadcairo-46646cf2b1e392caced989a9adb65b50eac86ba3.tar.gz
cairo_show_glyphs: Do nothing if num_glyphs == 0
(cherry picked from 1cffb39ff04bbb29bb070e42c51aa1ae6aaf5a4c commit)
-rw-r--r--src/cairo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo.c b/src/cairo.c
index 5754283f4..d09c56140 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -2155,6 +2155,9 @@ cairo_show_glyphs (cairo_t *cr, cairo_glyph_t *glyphs, int num_glyphs)
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);