fontbuild: fix bug where if g.lib did not have com.schriftgestaltung.Glyphs.lastChange the program would crash
This commit is contained in:
parent
583bd89876
commit
e95089f58b
1 changed files with 2 additions and 1 deletions
|
|
@ -270,7 +270,8 @@ class Main(object):
|
||||||
# unused
|
# unused
|
||||||
stripGlyphs.append(g.name)
|
stripGlyphs.append(g.name)
|
||||||
g.clearAnchors()
|
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
|
# update possibly modified glyphorder
|
||||||
font.lib['public.glyphOrder'] = list(glyphOrder)
|
font.lib['public.glyphOrder'] = list(glyphOrder)
|
||||||
|
|
|
||||||
Reference in a new issue