Skip to content

Commit

Permalink
Fixed minor layout bug found during module tree branch test
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Nov 17, 2023
1 parent 091b374 commit cd7d941
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/gui/src/graph_widget/layouters/graph_layouter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,10 @@ namespace hal
graphicsNet = san;
int yGridPos = mGlobalInputHash.value(dnt->id(), -1);
Q_ASSERT(yGridPos >= 0);
const EndpointCoordinate& epc = mEndpointHash.value(QPoint(mNodeBoundingBox.left(), yGridPos * 2));
san->setInputPosition(QPointF(mCoordArrayX->lanePosition(mNodeBoundingBox.left(),0), epc.lanePosition(0, true)));
QPoint pnt(mNodeBoundingBox.left(), yGridPos * 2);
const EndpointCoordinate& epc = mEndpointHash.value(pnt);
const NetLayoutJunction* nlj = mJunctionHash.value(pnt);
san->setInputPosition(QPointF(mCoordArrayX->lanePosition(mNodeBoundingBox.left(),nlj?nlj->rect().left():0), epc.lanePosition(0, true)));
}
if (epl.hasOutputArrow())
{
Expand Down

0 comments on commit cd7d941

Please sign in to comment.