From 113989dc46efc87afe7c396ebe55e7665a8b4a50 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Tue, 16 Jul 2024 09:46:56 +0200 Subject: [PATCH] Network: Fix crash where reservoir is defined. --- src/View/Network/GraphWidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Network/GraphWidget.py b/src/View/Network/GraphWidget.py index dd9ff531..5b55d764 100644 --- a/src/View/Network/GraphWidget.py +++ b/src/View/Network/GraphWidget.py @@ -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)