ui: Don't allow vertical aggregation edges when either node is a child
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user