]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Change of id on expression change
authorasl <asl@opencascade.com>
Tue, 8 Dec 2009 12:54:26 +0000 (12:54 +0000)
committerasl <asl@opencascade.com>
Tue, 8 Dec 2009 12:54:26 +0000 (12:54 +0000)
src/Notebook/SALOME_Parameter.cxx

index 2e78b22857e8e995443b100aed124e441d244343..09503b11e3dea0b2ded52f9be701962f518c0023 100644 (file)
@@ -51,7 +51,6 @@ SALOME_Parameter::SALOME_Parameter( SALOME_Notebook* theNotebook, const std::str
 SALOME_Parameter::SALOME_Parameter( SALOME_Notebook* theNotebook, const std::string& theName, const std::string& theData, bool isExpr )
 : myNotebook( theNotebook ), myName( theName ), myIsAnonymous( false ), myIsCalculable( isExpr )
 {
-  SetId();
   if( isExpr )
     InternalSetExpression( theData, false );
   else
@@ -368,6 +367,7 @@ void SALOME_Parameter::InternalSetExpression( const std::string& theExpr, bool i
       Update();
     else
       Update( SALOME::Notebook::_nil() );
+    SetId();
   }
   catch( SALOME::ExpressionError anError )
   {