Network: Fix crash where reservoir is defined.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-07-16 09:46:56 +02:00
1 parent 430cff8747
commit 113989dc46
1 file changed
+1 -1
+1 -1
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)