Skip to content

Commit

Permalink
Now Junction geometry points can be edited again. Refs #6945
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Jul 13, 2020
1 parent 279951e commit a71c198
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/netedit/GNEViewNetHelper.cpp
Expand Up @@ -658,10 +658,11 @@ GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement() {
myPOIToMove = nullptr;
} else if (myJunctionToMove) {
// check if in the moved position there is another Junction and it will be merged
if (!myJunctionToMove->isShapeEdited() && !myViewNet->mergeJunctions(myJunctionToMove)) {
if (myJunctionToMove->isShapeEdited()) {
myJunctionToMove->commitJunctionShapeChange(myViewNet->getUndoList());
} else if (!myViewNet->mergeJunctions(myJunctionToMove)) {
myJunctionToMove->commitGeometryMoving(myViewNet->getUndoList());
}
myJunctionToMove->commitGeometryMoving(myViewNet->getUndoList());
myJunctionToMove = nullptr;
} else if (myEdgeToMove) {
// commit change depending of what was moved
Expand Down

0 comments on commit a71c198

Please sign in to comment.