Skip to content

Commit

Permalink
Merge pull request #409 from robotools/ImproveTestExternalChangesClos…
Browse files Browse the repository at this point in the history
…edFileSystem

Create a new glyphset from the provided reader
  • Loading branch information
typemytype committed Aug 10, 2022
2 parents 8e26c6f + 5c30e62 commit 2bf0207
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/defcon/objects/layerSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,9 @@ def testForExternalChanges(self, reader):
modifiedGlyphs, addedGlyphs, deletedGlyphs = layer.testForExternalChanges(reader)
newLayerInfo = _StaticLayerInfoMaker()
layerInfoChanged = False
if layer._glyphSet is not None:
layer._glyphSet.readLayerInfo(newLayerInfo)
glyphSet = reader.getGlyphSet(layerName=layer.name, validateRead=layer.ufoLibReadValidate)
if glyphSet is not None:
glyphSet.readLayerInfo(newLayerInfo)
layerInfoChanged = layer._dataOnDisk != newLayerInfo.pack()
if modifiedGlyphs or addedGlyphs or deletedGlyphs or layerInfoChanged:
modifiedLayers[layerName] = dict(
Expand Down

0 comments on commit 2bf0207

Please sign in to comment.