summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout_p.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
index d878722..ee2144c 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
+++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp
@@ -1164,13 +1164,7 @@ void QGraphicsAnchorLayoutPrivate::calculateGraphs(
// objective function.
// Retrieve that path
- QGraphicsAnchorLayout::Edge end;
- if (orientation == Horizontal) {
- end = QGraphicsAnchorLayout::Right;
- } else {
- end = QGraphicsAnchorLayout::Bottom;
- }
- AnchorVertex *v = internalVertex(q, end);
+ AnchorVertex *v = internalVertex(q, pickEdge(QGraphicsAnchorLayout::Right, orientation));
GraphPath trunkPath = graphPaths[orientation].value(v);
if (!trunkConstraints.isEmpty()) {