Skip to content

Commit

Permalink
inserting the guideline with the same dict data must be possible
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Dec 18, 2020
1 parent 96752d3 commit 4022a95
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Lib/defcon/objects/glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,6 @@ def insertGuideline(self, index, guideline):
if not isinstance(guideline, self._guidelineClass):
guideline = self.instantiateGuideline(guidelineDict=guideline)

assert guideline not in self._guidelines
assert guideline.glyph in (self, None), "This guideline belongs to another glyph."
if guideline.glyph is None:
assert guideline.font is None, "This guideline belongs to a font."
Expand Down

0 comments on commit 4022a95

Please sign in to comment.