diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index 8c9066c25f..40559b69dd 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -2504,7 +2504,7 @@ static std::vector 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; }