[hb-cairo] Fix condition

This commit is contained in:
Behdad Esfahbod 2023-01-23 16:21:13 -07:00 committed by Matthias Clasen
parent f9b3c79047
commit 26d34392e2
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ hb_cairo_paint_color (hb_paint_funcs_t *pfuncs HB_UNUSED,
double r, g, b, a;
foreground = cairo_user_scaled_font_get_foreground_source (c->scaled_font);
if (cairo_pattern_get_rgba (foreground, &r, &g, &b, &a) != CAIRO_STATUS_SUCCESS)
if (cairo_pattern_get_rgba (foreground, &r, &g, &b, &a) == CAIRO_STATUS_SUCCESS)
cairo_set_source_rgba (cr, r, g, b, a * hb_color_get_alpha (color) / 255.);
else
cairo_set_source_rgba (cr, 0, 0, 0, hb_color_get_alpha (color) / 255.);