From 43502e91670194e3cde57b131dec18d9e6aec268 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 10 Dec 2009 11:18:54 +0000 Subject: [PATCH] correct update on parameter's value change --- src/Notebook/SALOME_Notebook.hxx | 2 +- src/Notebook/SALOME_Parameter.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.39.2