Skip to content

Commit

Permalink
fix #14768
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 25, 2024
1 parent e2cd4c6 commit 368c076
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/netedit/GNENetHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ GNENetHelper::AttributeCarriers::registerJunction(GNEJunction* junction) {
myNet->expandBoundary(junction->getCenteringBoundary());
// add edge into grid
myNet->addGLObjectIntoGrid(junction);
junction->setJunctionInGrid();
// update geometry
junction->updateGeometry();
// add z in net boundary
Expand Down
5 changes: 5 additions & 0 deletions src/netedit/elements/network/GNEJunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ class GNEJunction : public GNENetworkElement, public GNECandidateElement {
/// @brief check if junction is currently in grid
bool isJunctionInGrid() const;

/// @brief notify the junction as being in the RTree
void setJunctionInGrid() {
myJunctionInGrid = true;
}

/// @brief add incoming GNEEdge
void addIncomingGNEEdge(GNEEdge* edge);

Expand Down

0 comments on commit 368c076

Please sign in to comment.