From 37f7e0a35cdc46e90198a40efcc2ce5d410c8639 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 17 Dec 2014 08:53:26 +0300 Subject: [PATCH] Persistent problem of NewGeom in the Full SALOME application --- src/NewGeom/NewGeom_Module.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/NewGeom/NewGeom_Module.cpp b/src/NewGeom/NewGeom_Module.cpp index 2103ed5ef..b1a115e23 100644 --- a/src/NewGeom/NewGeom_Module.cpp +++ b/src/NewGeom/NewGeom_Module.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -257,7 +258,13 @@ NewGeom_OCCSelector* NewGeom_Module::createSelector(SUIT_ViewManager* theMgr) //****************************************************** CAM_DataModel* NewGeom_Module::createDataModel() { - return new NewGeom_DataModel(this); + NewGeom_DataModel* aDataModel = new NewGeom_DataModel(this); + + // Calling addComponent() for persistent functionality work in the SalomeApp_Study + LightApp_Study* aStudy = dynamic_cast(application()->activeStudy() ); + aStudy->addComponent(aDataModel); + + return aDataModel; } //****************************************************** -- 2.39.2