[subset] Fix enumeration of palette entry labels
This commit is contained in:
parent
bf6078af3e
commit
b945fd6305
@ -2259,7 +2259,7 @@ def prune_post_subset(self, font, options):
|
|||||||
|
|
||||||
if self.version == 1:
|
if self.version == 1:
|
||||||
self.paletteEntryLabels = [
|
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)
|
return bool(self.numPaletteEntries)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user