mirror of https://gitlab.com/pamhyr/pamhyr2
Network: Fix crash where reservoir is defined.
parent
430cff8747
commit
113989dc46
|
|
@ -73,7 +73,7 @@ class NodeItem(QGraphicsItem):
|
||||||
|
|
||||||
def shape(self):
|
def shape(self):
|
||||||
path = QPainterPath()
|
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)
|
path.addEllipse(-10, -10, 20, 20)
|
||||||
else:
|
else:
|
||||||
path.addRect(-10, -10, 20, 20)
|
path.addRect(-10, -10, 20, 20)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue