mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 23:40:19 +01:00
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:
parent
fa937913e0
commit
ded2dc8faa
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue