diff --git a/Lib/glyphsLib/classes.py b/Lib/glyphsLib/classes.py index 0e9e5c33c..bb40b5ee2 100755 --- a/Lib/glyphsLib/classes.py +++ b/Lib/glyphsLib/classes.py @@ -3742,7 +3742,12 @@ def _is_master_layer(self): @property def name(self): - if self.associatedMasterId and self._is_master_layer and self.parent: + if ( + self.associatedMasterId + and self._is_master_layer + and self.parent + and self.parent.parent + ): master = self.parent.parent.masterForId(self.associatedMasterId) if master: return master.name