X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSKETCHER%2FSketcher_Profile.cxx;h=fdb7d5bb89debb04c4fabfe18ac47dddd9c8b208;hb=04056cdd3254f6aa3ee567eeaf72e32f4691ffa7;hp=196b8b12968cfa345b7c257dff72126c34bb0fed;hpb=7d880c6a8262b6d670ed70ee2b9ec25c199a46d4;p=modules%2Fgeom.git diff --git a/src/SKETCHER/Sketcher_Profile.cxx b/src/SKETCHER/Sketcher_Profile.cxx index 196b8b129..fdb7d5bb8 100644 --- a/src/SKETCHER/Sketcher_Profile.cxx +++ b/src/SKETCHER/Sketcher_Profile.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -369,7 +369,7 @@ private: \brief Constructor \internal */ -Sketcher_Profile::Functor::Functor() : myError( 0 ), myNumberOfCommand( 0 ), myOk( true ) +Sketcher_Profile::Functor::Functor() : myNumberOfCommand( 0 ), myError( 0 ), myOk( true ) { } @@ -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; } /*!