summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-05 14:44:55 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-05 18:07:29 +0100
commitded2dc8faaa3a48c84a31422a31c64595a6eaf8a (patch)
tree0ff37c7ece851b2dd64a9fc29f206354f8667d06
parentfa937913e06bc295750538be45aa83eb42332fb4 (diff)
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.
-rw-r--r--src/cairo-scaled-font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c
index f4b35589..f928c08d 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;