From 1ecb8ad04bbdbf64b20fd9836cefc14215434d0a Mon Sep 17 00:00:00 2001 From: akl Date: Fri, 21 Feb 2014 14:40:04 +0400 Subject: [PATCH] Fix of 0022497: EDF GEOM: Regression in 2D sketcher --- src/SKETCHER/Sketcher_Profile.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } /*! -- 2.39.2