mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-19 04:10:31 +01:00
cairo_show_glyphs: Do nothing if num_glyphs == 0
This commit is contained in:
parent
3333bba82d
commit
1cffb39ff0
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue