From 4ea3200629c0337f666bb56da1fcc09a19aa5837 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 15 Oct 2019 11:25:39 +0800 Subject: [PATCH] Gui: fix box selection --- src/Gui/CommandView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }