From a28f003010e3b46a0dbeb88fe2267178defdde0f Mon Sep 17 00:00:00 2001 From: Pablo Alvarez Lopez Date: Tue, 28 Jan 2025 09:27:34 +0100 Subject: [PATCH] Fixed #16017 --- src/netedit/GNENet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netedit/GNENet.cpp b/src/netedit/GNENet.cpp index b2b2a2512a4..750147de92a 100644 --- a/src/netedit/GNENet.cpp +++ b/src/netedit/GNENet.cpp @@ -408,7 +408,7 @@ GNENet::deleteJunction(GNEJunction* junction, GNEUndoList* undoList) { // iterate over crossing of neighbour junction for (const auto& crossing : junctionNeighbour->getGNECrossings()) { // if at least one of the edges of junction to remove belongs to a crossing of the neighbour junction, delete it - if (crossing->checkEdgeBelong(junctionNeighbour->getChildEdges())) { + if (crossing->checkEdgeBelong(junction->getChildEdges())) { crossingsToRemove.push_back(crossing); } }