From: akl Date: Fri, 21 Feb 2014 10:40:04 +0000 (+0400) Subject: Fix of 0022497: EDF GEOM: Regression in 2D sketcher X-Git-Tag: V7_4_0a1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1ecb8ad04bbdbf64b20fd9836cefc14215434d0a;p=modules%2Fgeom.git Fix of 0022497: EDF GEOM: Regression in 2D sketcher --- diff --git a/src/SKETCHER/Sketcher_Profile.cxx b/src/SKETCHER/Sketcher_Profile.cxx index 196b8b129..1237bfd45 100644 --- a/src/SKETCHER/Sketcher_Profile.cxx +++ b/src/SKETCHER/Sketcher_Profile.cxx @@ -636,6 +636,7 @@ void Sketcher_Profile::ShapeFunctor::addSegmentLength( const TCollection_AsciiSt void Sketcher_Profile::ShapeFunctor::addSegmentX( const TCollection_AsciiString& x, int CurrentIndex ) { + myMove = none; myLength = x.RealValue(); if ( Abs( myDx ) < Precision::Confusion() ) { MESSAGE("profile : cannot intersect, arg "< Precision::Confusion() ) myMove = line; - else - myMove = none; } /*! @@ -657,6 +656,7 @@ void Sketcher_Profile::ShapeFunctor::addSegmentX( const TCollection_AsciiString& void Sketcher_Profile::ShapeFunctor::addSegmentY( const TCollection_AsciiString& y, int CurrentIndex ) { + myMove = none; myLength = y.RealValue(); if ( Abs( myDy ) < Precision::Confusion() ) { MESSAGE("profile : cannot intersect, arg "< Precision::Confusion() ) myMove = line; - else - myMove = none; } /*!