From: nds Date: Wed, 5 Apr 2017 10:03:23 +0000 (+0300) Subject: Issue #2059 point in sketch is created not on selected line of external sketchPlane... X-Git-Tag: V_2.7.0~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bdbfb368d71ed11cc0391354a7d86c880cd94949;p=modules%2Fshaper.git Issue #2059 point in sketch is created not on selected line of external sketchPlane: lines symbols <= 100 --- diff --git a/src/PartSet/PartSet_WidgetPoint2d.cpp b/src/PartSet/PartSet_WidgetPoint2d.cpp index 8e556448f..150b59095 100644 --- a/src/PartSet/PartSet_WidgetPoint2d.cpp +++ b/src/PartSet/PartSet_WidgetPoint2d.cpp @@ -593,10 +593,11 @@ void PartSet_WidgetPoint2D::mouseReleased(ModuleBase_IViewWindow* theWindow, QMo setPoint(aX, aY); else { if (aShape.ShapeType() == TopAbs_EDGE) { - // point is taken from mouse event and set in attribute. It should be done before setting + // point is taken from mouse event and set in attribute. It should be done before set // coinident constraint to the external line. If a point is created, it should be in // the mouse clicked point - gp_Pnt aPoint = PartSet_Tools::convertClickToPoint(theEvent->pos(), theWindow->v3dView()); + gp_Pnt aPoint = PartSet_Tools::convertClickToPoint(theEvent->pos(), + theWindow->v3dView()); PartSet_Tools::convertTo2D(aPoint, mySketch, aView, aX, aY); setPoint(aX, aY); }