mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
[gsubgpos] Initialize variation index on HB_NO_VAR
hb_shape_plan_key_t::equal expects hb_ot_shape_plan_key_t be initialized by hb_ot_layout_table_find_feature_variations calls but it won't get initialized when HB_NO_VAR build config is used. Related to https://github.com/harfbuzz/harfbuzz/issues/2280
This commit is contained in:
1 parent
071e2e345f
commit
b143e34ee1
1 file changed
+1
@@ -3054,6 +3054,7 @@ struct GSUBGPOS
|
||||
unsigned int *index) const
|
||||
{
|
||||
#ifdef HB_NO_VAR
|
||||
*index = NOT_FOUND_INDEX;
|
||||
return false;
|
||||
#endif
|
||||
return (version.to_int () >= 0x00010001u ? this+featureVars : Null (FeatureVariations))
|
||||
|
||||
Reference in new issue
Block a user