From b2bca80796792b01474817d1a31fabd86ac4e617 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Mon, 19 Dec 2016 23:21:02 +0100 Subject: [PATCH] Sketcher: Parabola box selection sign fix --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index bd3eb8632..b4f4b151c 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -2314,7 +2314,7 @@ void ViewProviderSketch::doBoxSelection(const SbVec2s &startPos, const SbVec2s & pnt0 = aop->getCenter(); float angle = float(startangle) + segment/2; for (int i = 0; i < countSegments; ++i, angle += segment) { - pnt = Base::Vector3d(pnt0.x + angle * angle / 4 / focal * cos(phi) + angle * sin(phi), + pnt = Base::Vector3d(pnt0.x + angle * angle / 4 / focal * cos(phi) - angle * sin(phi), pnt0.y + angle * angle / 4 / focal * sin(phi) + angle * cos(phi), 0.f);