mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-24 18:20:09 +01:00
[gstate] Check for NULL font_face in _cairo_gstate_set_font_face
This commit is contained in:
parent
7e57892983
commit
b67d34e960
1 changed files with 4 additions and 1 deletions
|
|
@ -1466,7 +1466,10 @@ cairo_status_t
|
|||
_cairo_gstate_set_font_face (cairo_gstate_t *gstate,
|
||||
cairo_font_face_t *font_face)
|
||||
{
|
||||
if (font_face && font_face->status)
|
||||
if (font_face == NULL)
|
||||
return CAIRO_STATUS_NULL_POINTER;
|
||||
|
||||
if (font_face->status)
|
||||
return font_face->status;
|
||||
|
||||
if (font_face != gstate->font_face) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue