Skip to content

Commit

Permalink
Fixed shift+drag selection
Browse files Browse the repository at this point in the history
- was including hidden widgets
  • Loading branch information
ypujante committed Jan 31, 2023
1 parent 6efd50e commit 895925a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/re/edit/Panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1879,9 +1879,9 @@ void Panel::selectWidgets(AppContext &iCtx, ImVec2 const &iPosition1, ImVec2 con

for(auto &[id, w]: fWidgets)
{
if(!w->isSelected() && w->overlaps(topLeft, bottomRight))
if(!w->isSelected() && !w->isHidden() && w->overlaps(topLeft, bottomRight))
{
w->fSelected = true;
w->select();
}
}
}
Expand Down

0 comments on commit 895925a

Please sign in to comment.