cairo_show_glyphs: Do nothing if num_glyphs == 0

This commit is contained in:
Carl Worth 2006-03-08 08:16:49 -08:00
parent 3333bba82d
commit 1cffb39ff0

View file

@ -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);