Skip to content

Commit e2d4520

Browse files
authored
fix: use nodeId style instead the default StyleCollection style (#403)
If we want to customize a nodeId style then we should return the data of the nodeId instead of the generic StyleCollection style.
1 parent 3799f43 commit e2d4520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataFlowGraphModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ QVariant DataFlowGraphModel::nodeData(NodeId nodeId, NodeRole role) const
268268
break;
269269

270270
case NodeRole::Style: {
271-
auto style = StyleCollection::nodeStyle();
271+
auto style = _models.at(nodeId)->nodeStyle();
272272
result = style.toJson().toVariantMap();
273273
} break;
274274

0 commit comments

Comments
 (0)