[hb-cairo] Fix color cache on not-found

This commit is contained in:
Behdad Esfahbod 2023-01-20 15:02:24 -07:00
parent cc9b55c794
commit beba43eebe
1 changed files with 2 additions and 0 deletions

View File

@ -324,6 +324,8 @@ hb_cairo_paint_custom_palette_color (hb_paint_funcs_t *funcs,
hb_codepoint_t *c;
if (likely (color_cache && color_cache->has (color_index, &c)))
{
if (*c == DEADBEEF)
return false;
*color = *c;
return true;
}