[cairo-commit] src/cairo-scaled-font.c

Chris Wilson ickle at kemper.freedesktop.org
Wed May 5 10:07:53 PDT 2010

 src/cairo-scaled-font.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ded2dc8faaa3a48c84a31422a31c64595a6eaf8a
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed May 5 14:44:55 2010 +0100

    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.

diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c
index f4b3558..f928c08 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++];

More information about the cairo-commit mailing list