scaled-font: Pluck last glyph from the most recent page.

In converting to cairo_list_t, it helps to preserve the semantics of
appending the page to the end of the list where it is expected to be
plucked in the event of an allocation failure.
This commit is contained in:
Chris Wilson 2010-05-05 14:44:55 +01:00
parent fa937913e0
commit ded2dc8faa

View file

@ -2620,7 +2620,7 @@ _cairo_scaled_font_allocate_glyph (cairo_scaled_font_t *scaled_font,
return status;
}
cairo_list_add (&page->link, &scaled_font->glyph_pages);
cairo_list_add_tail (&page->link, &scaled_font->glyph_pages);
*scaled_glyph = &page->glyphs[page->num_glyphs++];
return CAIRO_STATUS_SUCCESS;