Salome HOME
additional protection to avoid wrong study pointer if model was closed and new model...
authorptv <ptv@opencascade.com>
Thu, 10 Nov 2005 12:09:18 +0000 (12:09 +0000)
committerptv <ptv@opencascade.com>
Thu, 10 Nov 2005 12:09:18 +0000 (12:09 +0000)
src/LightApp/LightApp_Module.cxx

index 54835f7577f9f82ee50fc276c5f98530f3be692f..b3f1428cba03eac23f44f624b71e732dec3f617b 100644 (file)
@@ -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();
+  }
 }
 
 /*!