Skip to content

Commit

Permalink
GSLayer: fix name property when parent GSGlyph is in turn orphan
Browse files Browse the repository at this point in the history
Fixes #1014
  • Loading branch information
anthrotype committed Jul 31, 2024
1 parent 955ba58 commit 98bcee8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Lib/glyphsLib/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98bcee8

Please sign in to comment.