fontbuild: fix bug where if g.lib did not have com.schriftgestaltung.Glyphs.lastChange the program would crash

This commit is contained in:
Rasmus Andersson 2020-04-04 11:00:35 -07:00
parent 583bd89876
commit e95089f58b

View file

@ -270,7 +270,8 @@ class Main(object):
# unused
stripGlyphs.append(g.name)
g.clearAnchors()
del g.lib['com.schriftgestaltung.Glyphs.lastChange']
if 'com.schriftgestaltung.Glyphs.lastChange' in g.lib:
del g.lib['com.schriftgestaltung.Glyphs.lastChange']
# update possibly modified glyphorder
font.lib['public.glyphOrder'] = list(glyphOrder)