[subset] Fix enumeration of palette entry labels

This commit is contained in:
Jack McCabe 2022-09-30 11:40:39 +01:00
parent bf6078af3e
commit b945fd6305

View File

@ -2259,7 +2259,7 @@ def prune_post_subset(self, font, options):
if self.version == 1:
self.paletteEntryLabels = [
label for i, label in self.paletteEntryLabels if i in retained_palette_indices
label for i, label in enumerate(self.paletteEntryLabels) if i in retained_palette_indices
]
return bool(self.numPaletteEntries)