From 794781ad568f67d7f06264dc1241de8f0ad075fc Mon Sep 17 00:00:00 2001 From: ptv Date: Thu, 10 Nov 2005 12:09:18 +0000 Subject: [PATCH] additional protection to avoid wrong study pointer if model was closed and new model created in same module --- src/LightApp/LightApp_Module.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/LightApp/LightApp_Module.cxx b/src/LightApp/LightApp_Module.cxx index 54835f757..b3f1428cb 100644 --- a/src/LightApp/LightApp_Module.cxx +++ b/src/LightApp/LightApp_Module.cxx @@ -343,7 +343,11 @@ void LightApp_Module::startOperation( const int id ) } if( op ) + { + // be sure that operation has correct study pointer + op->setStudy( application() ? application()->activeStudy() : 0 ); op->start(); + } } /*! -- 2.39.2