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

index 6cd32b75e2b7b4381d8856f3323be4665dfa90f1..49c4b88b015ebfed807232726cb5355c68aadbac 100644 (file)
@@ -1099,12 +1099,11 @@ bool SUPERVGUI_Main::putDataStudy( SUPERV_Port p, const char* inout ) {
            if ( !aSStudy ) return false;
            try {
              aTmpSO = aDriver->PublishInStudy( aSStudy->GetStudy(), aTmpSO, anObject, "" );
+             aBuilder->Addreference(aSO, _PTR(SObject)(new SALOMEDS_SObject( aTmpSO )) );
+             PublishOtherComponent = true;
            }
            catch ( ... ) { // mkr : PAL8150
-             return false;
            }
-           aBuilder->Addreference(aSO, _PTR(SObject)(new SALOMEDS_SObject( aTmpSO )) );
-           PublishOtherComponent = true;
          } 
          else { // can't publish object: abort transaction
            MESSAGE( "CanPublishInStudy() returned FALSE.  ok, AbortCommand.." );