From ded2dc8faaa3a48c84a31422a31c64595a6eaf8a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 5 May 2010 14:44:55 +0100 Subject: [PATCH] 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. --- src/cairo-scaled-font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c index f4b35589f..f928c08df 100644 --- a/src/cairo-scaled-font.c +++ b/src/cairo-scaled-font.c @@ -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;