mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 21:38:03 +02:00
_cairo_gstate_ensure_scaled_font: Prefer to treat a pointer as a pointer, not a Boolean value
This commit is contained in:
parent
dca69f73e3
commit
2f1221e0f2
1 changed files with 1 additions and 2 deletions
|
|
@ -1447,8 +1447,7 @@ _cairo_gstate_ensure_scaled_font (cairo_gstate_t *gstate)
|
|||
&gstate->font_matrix,
|
||||
&gstate->ctm,
|
||||
&options);
|
||||
|
||||
if (!gstate->scaled_font)
|
||||
if (gstate->scaled_font == NULL)
|
||||
return CAIRO_STATUS_NO_MEMORY;
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue