Do not overwrite already existing edge characters
This commit is contained in:
parent
3b36c390a0
commit
8a25094b25
3
boxes.py
3
boxes.py
|
@ -431,7 +431,8 @@ class Boxes:
|
||||||
if name is None:
|
if name is None:
|
||||||
name = part.__class__.__name__
|
name = part.__class__.__name__
|
||||||
name = name[0].lower() + name[1:]
|
name = name[0].lower() + name[1:]
|
||||||
setattr(self, name, part)
|
if not hasattr(self, name):
|
||||||
|
setattr(self, name, part)
|
||||||
if isinstance(part, Edge):
|
if isinstance(part, Edge):
|
||||||
self.edges[part.char] = part
|
self.edges[part.char] = part
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue