From 84eedf244828397ed7bd5cd8ded7928383318286 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 12 Oct 2017 11:07:27 +0200 Subject: [PATCH] don't select circle/ellipse center if not inside selection box --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 02a0557af3..559252dafe 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -2044,15 +2044,11 @@ void ViewProviderSketch::doBoxSelection(const SbVec2s &startPos, const SbVec2s & } if (bpolyInside) { - std::stringstream ss,ss2; + std::stringstream ss; ss.clear(); ss.str(""); ss << "Edge" << GeoId + 1; Gui::Selection().addSelection(doc->getName(), sketchObject->getNameInDocument(),ss.str().c_str()); - if(touchMode){ - ss2 << "Vertex" << VertexId + 1; - Gui::Selection().addSelection(doc->getName(), sketchObject->getNameInDocument(), ss2.str().c_str()); - } } } } else if ((*it)->getTypeId() == Part::GeomEllipse::getClassTypeId()) { @@ -2103,10 +2099,6 @@ void ViewProviderSketch::doBoxSelection(const SbVec2s &startPos, const SbVec2s & ss.str(""); ss << "Edge" << GeoId + 1; Gui::Selection().addSelection(doc->getName(), sketchObject->getNameInDocument(),ss.str().c_str()); - if(touchMode){ - ss2 << "Vertex" << VertexId + 1; - Gui::Selection().addSelection(doc->getName(), sketchObject->getNameInDocument(), ss2.str().c_str()); - } } }