mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-02 17:50:29 +01:00
[cairo] Return after detecting the invalid font-options.
Do not continue to copy the contents of the nil cairo_font_options_t, but set the error on the context and return.
This commit is contained in:
parent
dfd4d41ac9
commit
ae5d4a1c17
1 changed files with 3 additions and 1 deletions
|
|
@ -2642,8 +2642,10 @@ cairo_set_font_options (cairo_t *cr,
|
|||
return;
|
||||
|
||||
status = cairo_font_options_status ((cairo_font_options_t *) options);
|
||||
if (status)
|
||||
if (status) {
|
||||
_cairo_set_error (cr, status);
|
||||
return;
|
||||
}
|
||||
|
||||
_cairo_gstate_set_font_options (cr->gstate, options);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue