]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug PAL8150 : CRASH after "Put in Study" applied to the "readMeshInFile"...
authormkr <mkr@opencascade.com>
Mon, 6 Feb 2006 14:54:33 +0000 (14:54 +0000)
committermkr <mkr@opencascade.com>
Mon, 6 Feb 2006 14:54:33 +0000 (14:54 +0000)
src/SUPERVGUI/SUPERVGUI_Main.cxx

index bd23eaa0c4e9b5b3950129c588d2a3ecabe89bba..6cd32b75e2b7b4381d8856f3323be4665dfa90f1 100644 (file)
@@ -564,7 +564,7 @@ void SUPERVGUI_Main::onShowToolbar()
     aVF->getToolBar()->show();
 }
 
-// mkr : PAL8237 : synchronize many views of the same dataflow
+// mkr : PAL8237 : synchronize many views of the same dataflow (objects creation/deletion)
 void SUPERVGUI_Main::onObjectCreatedDeleted()
 {
   if ( study ) {
@@ -1097,7 +1097,12 @@ bool SUPERVGUI_Main::putDataStudy( SUPERV_Port p, const char* inout ) {
            SALOMEDS::SObject_var aTmpSO;// = aSO;
            SALOMEDS_Study* aSStudy = dynamic_cast<SALOMEDS_Study*>( aStudy.get() );
            if ( !aSStudy ) return false;
-           aTmpSO = aDriver->PublishInStudy( aSStudy->GetStudy(), aTmpSO, anObject, "" );
+           try {
+             aTmpSO = aDriver->PublishInStudy( aSStudy->GetStudy(), aTmpSO, anObject, "" );
+           }
+           catch ( ... ) { // mkr : PAL8150
+             return false;
+           }
            aBuilder->Addreference(aSO, _PTR(SObject)(new SALOMEDS_SObject( aTmpSO )) );
            PublishOtherComponent = true;
          }