varLib.cff: fix unbound local variable

Fixes https://github.com/fonttools/fonttools/issues/1787

Thanks Behdad.
This commit is contained in:
Cosimo Lupo 2020-12-14 18:21:04 +00:00
parent c990a5b4e0
commit 1f33249d36
No known key found for this signature in database
GPG Key ID: 179A8F0895A02F4F

View File

@ -413,7 +413,7 @@ def merge_charstrings(glyphOrder, num_masters, top_dicts, masterModel):
# in the PrivatDict, so we will build the default data for vsindex = 0.
if not vsindex_dict:
key = (True,) * num_masters
_add_new_vsindex(model, key, masterSupports, vsindex_dict,
_add_new_vsindex(masterModel, key, masterSupports, vsindex_dict,
vsindex_by_key, varDataList)
cvData = CVarData(varDataList=varDataList, masterSupports=masterSupports,
vsindex_dict=vsindex_dict)