Skip to content

Commit

Permalink
fix #14700
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 11, 2024
1 parent f021373 commit 9993b36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/netedit/GNEViewNetHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1639,13 +1639,18 @@ GNEViewNetHelper::SelectingArea::drawRectangleSelection(const RGBColor& color) c

void
GNEViewNetHelper::SelectingArea::processBoundarySelection(const Boundary& boundary) {
const bool selEdges = myViewNet->myNetworkViewOptions.selectEdges();
// obtain all elements in boundary
myViewNet->updateObjectsInBoundary(boundary);
// filter ACsInBoundary depending of current supermode
std::set<GNEAttributeCarrier*> ACsFiltered;
for (const auto& AC : myViewNet->getViewObjectsSelector().getAttributeCarriers()) {
if (myViewNet->myEditModes.isCurrentSupermodeNetwork()) {
if (AC->getTagProperty().isNetworkElement() || AC->getTagProperty().isAdditionalElement()) {
if ((AC->getTagProperty().getTag() == SUMO_TAG_EDGE && !selEdges)
|| (AC->getTagProperty().getTag() == SUMO_TAG_LANE && selEdges)) {
continue;
}
ACsFiltered.insert(AC);
}
} else if (myViewNet->myEditModes.isCurrentSupermodeDemand() && AC->getTagProperty().isDemandElement()) {
Expand Down

0 comments on commit 9993b36

Please sign in to comment.