Skip to content

Commit

Permalink
Fixed #15064
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Sep 11, 2024
1 parent a79689b commit f66c56a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/netedit/elements/additional/GNEAdditional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ GNEAdditional::getPopUpMenu(GUIMainWindow& app, GUISUMOAbstractView& parent) {
GUIDesigns::buildFXMenuCommand(ret, TL("Mouse position over edge: ") + toString(innerPos + edgePos), nullptr, nullptr, 0);
}
} else {
GUIDesigns::buildFXMenuCommand(ret, TL("Cursor position in view: ") + toString(getPositionInView().x()) + "," + toString(getPositionInView().y()), nullptr, nullptr, 0);
const auto mousePos = myNet->getViewNet()->getPositionInformation();
GUIDesigns::buildFXMenuCommand(ret, TL("Cursor position in view: ") + toString(mousePos.x()) + "," + toString(mousePos.y()), nullptr, nullptr, 0);
}
return ret;
}
Expand Down

0 comments on commit f66c56a

Please sign in to comment.