mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
[hb-cairo] Fix color cache on not-found
This commit is contained in:
1 parent
cc9b55c794
commit
beba43eebe
1 file changed
+2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user