[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:
Chris Wilson 2007-05-09 13:19:54 +01:00
parent dfd4d41ac9
commit ae5d4a1c17

View file

@ -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);
}