From: nds Date: Wed, 17 Dec 2014 05:53:26 +0000 (+0300) Subject: Persistent problem of NewGeom in the Full SALOME application X-Git-Tag: before_slalome_7.5.1~3^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=37f7e0a35cdc46e90198a40efcc2ce5d410c8639;p=modules%2Fshaper.git Persistent problem of NewGeom in the Full SALOME application --- 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; } //******************************************************