Gui: fix box selection

This commit is contained in:
Zheng, Lei
2019-10-15 11:25:39 +08:00
committed by wwmayer
parent 165302a729
commit 4ea3200629

View File

@@ -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;
}