fixed touch-selection of circle and ellipse centerpoints not working

This commit is contained in:
SparkyCola
2017-10-09 02:43:24 +02:00
committed by wmayer
parent b32fce69f1
commit 9fba505e84

View File

@@ -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 || polygon.Contains(Base::Vector2d(pnt0.x, pnt0.y)){
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());