Network: Fix crash where reservoir is defined.

adists_release
Pierre-Antoine Rouby 2024-07-16 09:46:56 +02:00
parent 430cff8747
commit 113989dc46
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class NodeItem(QGraphicsItem):
def shape(self):
path = QPainterPath()
if self.graph.parent._reservoir.get_assoc_to_node(self.node) is None:
if self.graph.graph._reservoir.get_assoc_to_node(self.node) is None:
path.addEllipse(-10, -10, 20, 20)
else:
path.addRect(-10, -10, 20, 20)