[subset] Fix subsetting of VarStore

Was *so* broken.  Ouch!

Reported by Nyshadh, reproduced with Comfortaa-Regular.ttf.
This commit is contained in:
Behdad Esfahbod 2018-11-20 00:24:28 -05:00
parent 335c98512e
commit abb9d149ed

View File

@ -204,7 +204,7 @@ def VarStore_subset_varidxes(self, varIdxes, optimize=True):
usedMinors = used.get(major)
if usedMinors is None:
continue
newMajor = varDataMap[major] = len(newVarData)
newMajor = len(newVarData)
newVarData.append(data)
items = data.Item