From b32fce69f1b4caab5dd6734fcf42ccf3269747a7 Mon Sep 17 00:00:00 2001 From: SparkyCola Date: Mon, 9 Oct 2017 00:23:35 +0200 Subject: [PATCH] fixed selection of centerpoints when only selecting them resulted in not selecting anything at all (in Sketcher touch-selection) --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index c69c9ddf5f..af969b9a2d 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -2017,7 +2017,7 @@ void ViewProviderSketch::doBoxSelection(const SbVec2s &startPos, const SbVec2s & pnt0 = proj(pnt0); if (polygon.Contains(Base::Vector2d(pnt0.x, pnt0.y)) || touchMode) { - if(!touchMode){ + if(!touchMode || polygon.Contains(Base::Vector2d(pnt0.x, pnt0.y))){ std::stringstream ss; ss << "Vertex" << VertexId + 1; Gui::Selection().addSelection(doc->getName(), sketchObject->getNameInDocument(), ss.str().c_str()); @@ -2071,7 +2071,7 @@ void ViewProviderSketch::doBoxSelection(const SbVec2s &startPos, const SbVec2s & pnt0 = proj(pnt0); if (polygon.Contains(Base::Vector2d(pnt0.x, pnt0.y)) || touchMode) { - if(!touchMode){ + if(!touchMode || polygon.Contains(Base::Vector2d(pnt0.x, pnt0.y)){ std::stringstream ss; ss << "Vertex" << VertexId + 1; Gui::Selection().addSelection(doc->getName(), sketchObject->getNameInDocument(), ss.str().c_str());