From: asl Date: Thu, 10 Dec 2009 11:18:54 +0000 (+0000) Subject: correct update on parameter's value change X-Git-Tag: PHASE_17_Part1_V3~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=43502e91670194e3cde57b131dec18d9e6aec268;p=modules%2Fkernel.git correct update on parameter's value change --- diff --git a/src/Notebook/SALOME_Notebook.hxx b/src/Notebook/SALOME_Notebook.hxx index 7d7f1f46f..5a8bd6871 100644 --- a/src/Notebook/SALOME_Notebook.hxx +++ b/src/Notebook/SALOME_Notebook.hxx @@ -80,6 +80,7 @@ public: virtual SALOME::StringArray* GetParameters( const char* theParamName ); SALOME_Parameter* GetParameterPtr( const char* theParamName ) const; + void Update( bool theOnlyParameters ); void UpdateAnonymous( const std::string& theOldName, const std::string& theNewName ); int GetNewId(); bool HasDependency( const std::string& theObjKey, const std::string& theRefKey ) const; @@ -88,7 +89,6 @@ public: void RebuildLinks(); private: - void Update( bool theOnlyParameters ); void AddParameter( SALOME_Parameter* theParam, bool theAddDependencies = true ); void AddDependencies( SALOME_Parameter* theParam ); void AddDependency( const std::string& theObjKey, const std::string& theRefKey ); diff --git a/src/Notebook/SALOME_Parameter.cxx b/src/Notebook/SALOME_Parameter.cxx index 09503b11e..9dba0d40a 100644 --- a/src/Notebook/SALOME_Parameter.cxx +++ b/src/Notebook/SALOME_Parameter.cxx @@ -121,7 +121,7 @@ void SALOME_Parameter::Update( SALOME::Notebook_ptr /*theNotebook*/ ) void SALOME_Parameter::Update() { myNotebook->SetToUpdate( _this() ); - myNotebook->Update(); + myNotebook->Update( true ); } void SALOME_Parameter::SetExpression( const char* theExpr )