[font] Fix test
This commit is contained in:
parent
a2015cd300
commit
d0de389de8
|
@ -1855,9 +1855,7 @@ hb_font_set_user_data (hb_font_t *font,
|
||||||
hb_destroy_func_t destroy /* May be NULL. */,
|
hb_destroy_func_t destroy /* May be NULL. */,
|
||||||
hb_bool_t replace)
|
hb_bool_t replace)
|
||||||
{
|
{
|
||||||
if (hb_object_is_immutable (font))
|
if (!hb_object_is_immutable (font))
|
||||||
return false;
|
|
||||||
|
|
||||||
font->serial++;
|
font->serial++;
|
||||||
|
|
||||||
return hb_object_set_user_data (font, key, data, destroy, replace);
|
return hb_object_set_user_data (font, key, data, destroy, replace);
|
||||||
|
|
Loading…
Reference in New Issue