ui: Don't allow vertical aggregation edges when either node is a child

This commit is contained in:
Eberhard Graether
2017-01-09 21:47:38 +01:00
parent 95dd6dadfc
commit 79456d4121
@@ -126,7 +126,9 @@ void QtGraphEdge::updateLine()
}
}
if (type != Edge::EDGE_INHERITANCE && type != Edge::EDGE_AGGREGATION)
if (type != Edge::EDGE_INHERITANCE &&
(type != Edge::EDGE_AGGREGATION ||
owner.get() != owner->getLastParent() || target.get() != target->getLastParent()))
{
child->setRoute(QtAngledLineItem::ROUTE_HORIZONTAL);
}