Skip to content

Commit

Permalink
Gui: fix box selection
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Oct 20, 2019
1 parent 165302a commit 4ea3200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/CommandView.cpp
Expand Up @@ -2504,7 +2504,7 @@ static std::vector<std::string> getBoxSelection(
const auto &subs = obj->getSubObjects(App::DocumentObject::GS_SELECT);
if(subs.empty()) {
if(!selectElement) {
if(mode==INTERSECT || bbox.Contains(bbox.GetCenter()))
if(mode==INTERSECT || polygon.Contains(bbox.GetCenter()))
ret.emplace_back("");
return ret;
}
Expand Down

0 comments on commit 4ea3200

Please sign in to comment.