Skip to content

Commit

Permalink
Check embedded proxy widget for nullptr (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
paceholder committed Oct 13, 2024
1 parent 7651465 commit 0f85146
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/NodeGraphicsObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ BasicGraphicsScene *NodeGraphicsObject::nodeScene() const

void NodeGraphicsObject::updateQWidgetEmbedPos()
{
_proxyWidget->setPos(nodeScene()->nodeGeometry().widgetPosition(_nodeId));
if (_proxyWidget) {
AbstractNodeGeometry &geometry = nodeScene()->nodeGeometry();
_proxyWidget->setPos(geometry.widgetPosition(_nodeId));
}
}

void NodeGraphicsObject::embedQWidget()
Expand Down

0 comments on commit 0f85146

Please sign in to comment.