[font] Fix test

This commit is contained in:
Behdad Esfahbod 2022-05-20 12:18:43 -06:00
parent a2015cd300
commit d0de389de8
1 changed files with 2 additions and 4 deletions

View File

@ -1855,9 +1855,7 @@ hb_font_set_user_data (hb_font_t *font,
hb_destroy_func_t destroy /* May be NULL. */,
hb_bool_t replace)
{
if (hb_object_is_immutable (font))
return false;
if (!hb_object_is_immutable (font))
font->serial++;
return hb_object_set_user_data (font, key, data, destroy, replace);