From 7e25d9e3daf02de009c18faabe42fb64e0f82044 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 2 Feb 2006 09:02:04 +0000 Subject: [PATCH] Fix for bug 11310: Fatal error creating a Post-Pro presentation, based on data, loaded with python script. --- src/SalomeApp/SalomeApp_DataModel.cxx | 10 ++++++++++ src/SalomeApp/SalomeApp_DataModel.h | 1 + 2 files changed, 11 insertions(+) diff --git a/src/SalomeApp/SalomeApp_DataModel.cxx b/src/SalomeApp/SalomeApp_DataModel.cxx index 81db7b490..5fcae7b7b 100644 --- a/src/SalomeApp/SalomeApp_DataModel.cxx +++ b/src/SalomeApp/SalomeApp_DataModel.cxx @@ -214,6 +214,16 @@ bool SalomeApp_DataModel::open( const QString& name, CAM_Study* study, QStringLi return true; } +//================================================================ +// Function : create +/*! Purpose : Create data model*/ +//================================================================ +bool SalomeApp_DataModel::create( CAM_Study* theStudy ) +{ + update(NULL, (LightApp_Study*)theStudy); + return true; +} + //================================================================ // Function : update /*! Purpose : Update application.*/ diff --git a/src/SalomeApp/SalomeApp_DataModel.h b/src/SalomeApp/SalomeApp_DataModel.h index 7c5c84feb..62e649bc3 100644 --- a/src/SalomeApp/SalomeApp_DataModel.h +++ b/src/SalomeApp/SalomeApp_DataModel.h @@ -33,6 +33,7 @@ public: virtual ~SalomeApp_DataModel(); virtual bool open( const QString&, CAM_Study*, QStringList ); + virtual bool create( CAM_Study* ); virtual void update( LightApp_DataObject* = 0, LightApp_Study* = 0 ); QString getRootEntry( SalomeApp_Study* ) const; -- 2.39.2