From: nds Date: Mon, 28 Dec 2015 11:01:25 +0000 (+0300) Subject: Sketch should stop contour in origin point if the contour is closed. X-Git-Tag: V_2.1.0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd939d829fdb29b26152254e733adad38320d1d8;p=modules%2Fshaper.git Sketch should stop contour in origin point if the contour is closed. Scenario: 1. Start sketch creation in Origin 2. Create contour 3. Finish the contour in Origin. The line creation operation should stop. --- diff --git a/src/PartSet/PartSet_WidgetPoint2d.h b/src/PartSet/PartSet_WidgetPoint2d.h index 6985ffa4e..77e286ab2 100755 --- a/src/PartSet/PartSet_WidgetPoint2d.h +++ b/src/PartSet/PartSet_WidgetPoint2d.h @@ -168,7 +168,7 @@ protected: /// \param theY an Y coordinate of the point /// \return boolean result static bool isOrphanPoint(const FeaturePtr& theFeature, const CompositeFeaturePtr& theSketch, - double theX, double theY); + double theX, double theY, const bool theSearchInResults = false); protected: ModuleBase_IWorkshop* myWorkshop; ///< workshop