mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 11:28:02 +02:00
cairo-truetype-subset: Fix missing error propagation
This commit is contained in:
parent
97b8fd8117
commit
e73a55ad3c
1 changed files with 4 additions and 1 deletions
|
|
@ -505,8 +505,11 @@ cairo_truetype_font_write_glyf_table (cairo_truetype_font_t *font,
|
|||
font->glyphs[i].location = next - start_offset;
|
||||
|
||||
status = cairo_truetype_font_allocate_write_buffer (font, size, &buffer);
|
||||
if (status)
|
||||
if (status) {
|
||||
font->status = status;
|
||||
break;
|
||||
}
|
||||
|
||||
if (size != 0) {
|
||||
font->backend->load_truetype_table (font->scaled_font_subset->scaled_font,
|
||||
TT_TAG_glyf, begin, buffer, &size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue