From bdbfb368d71ed11cc0391354a7d86c880cd94949 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 5 Apr 2017 13:03:23 +0300 Subject: [PATCH] Issue #2059 point in sketch is created not on selected line of external sketchPlane: lines symbols <= 100 --- src/PartSet/PartSet_WidgetPoint2d.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.39.2