Also call _cairo_gstate_ensure_font() for this function.

This commit is contained in:
Kristian Høgsberg 2005-05-01 22:30:58 +00:00
parent 388a8d491d
commit 0c40f66c04
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-05-02 Kristian Høgsberg <krh@redhat.com>
* src/cairo-gstate.c (_cairo_gstate_glyph_path): Also call
_cairo_gstate_ensure_font() for this function.
2005-04-28 Owen Taylor <otaylor@redhat.com>
* TODO, ROADMAP: Add a item about reworking cairo_format_t.

View file

@ -2144,6 +2144,10 @@ _cairo_gstate_glyph_path (cairo_gstate_t *gstate,
int i;
cairo_glyph_t *transformed_glyphs = NULL;
status = _cairo_gstate_ensure_font (gstate);
if (status)
return status;
transformed_glyphs = malloc (num_glyphs * sizeof(cairo_glyph_t));
if (transformed_glyphs == NULL)
return CAIRO_STATUS_NO_MEMORY;