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,6 +270,7 @@ class Main(object):
# unused # unused
stripGlyphs.append(g.name) stripGlyphs.append(g.name)
g.clearAnchors() g.clearAnchors()
if 'com.schriftgestaltung.Glyphs.lastChange' in g.lib:
del g.lib['com.schriftgestaltung.Glyphs.lastChange'] del g.lib['com.schriftgestaltung.Glyphs.lastChange']
# update possibly modified glyphorder # update possibly modified glyphorder