Commit 50d1087a authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesinger.NodeInstances: Fix bounding rectangle calculation

Change-Id: Ia0633416e50da68377a781050e301e5721540d6b

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarThomas Hartmann <>
parent 1e1e4b4f
......@@ -276,7 +276,7 @@ QRectF SGItemNodeInstance::boundingRectWithStepChilds(QSGItem *parentItem) const
QRectF boundingRect = parentItem->boundingRect();
foreach (QSGItem *childItem, parentItem->childItems()) {
if (nodeInstanceServer()->hasInstanceForObject(childItem)) {
if (!nodeInstanceServer()->hasInstanceForObject(childItem)) {
QRectF transformedRect = childItem->mapRectToItem(parentItem, boundingRectWithStepChilds(childItem));
if (isRectangleSane(transformedRect))
boundingRect = boundingRect.united(transformedRect);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment