mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-08 22:54:36 +00:00
[font] Fix test
This commit is contained in:
parent
a2015cd300
commit
d0de389de8
1 changed files with 2 additions and 4 deletions
|
@ -1855,10 +1855,8 @@ 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;
|
||||
|
||||
font->serial++;
|
||||
if (!hb_object_is_immutable (font))
|
||||
font->serial++;
|
||||
|
||||
return hb_object_set_user_data (font, key, data, destroy, replace);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue