diff options
Diffstat (limited to 'src/cairo-scaled-font.c')
-rwxr-xr-x | src/cairo-scaled-font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c index 30611dca4..270f8ed34 100755 --- a/src/cairo-scaled-font.c +++ b/src/cairo-scaled-font.c @@ -1145,6 +1145,7 @@ cairo_scaled_font_create (cairo_font_face_t *font_face, ctm, options, &scaled_font); /* Did we leave the backend in an error state? */ if (unlikely (status)) { + status = _cairo_font_face_set_error (font_face, status); _cairo_scaled_font_map_unlock (); if (font_face != original_font_face) cairo_font_face_destroy (font_face); @@ -1152,7 +1153,6 @@ cairo_scaled_font_create (cairo_font_face_t *font_face, if (dead != NULL) cairo_scaled_font_destroy (dead); - status = _cairo_font_face_set_error (font_face, status); return _cairo_scaled_font_create_in_error (status); } /* Or did we encounter an error whilst constructing the scaled font? */ |