Gui: fix box selection

This commit is contained in:
Zheng, Lei
2019-10-15 11:25:39 +08:00
committed by wwmayer
parent fb03502469
commit cdca061ca1

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