]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Modified method PasteLabel, added {}
authorsrn <srn@opencascade.com>
Mon, 12 Sep 2005 11:52:10 +0000 (11:52 +0000)
committersrn <srn@opencascade.com>
Mon, 12 Sep 2005 11:52:10 +0000 (11:52 +0000)
src/SALOMEDS/SALOMEDS_StudyManager_i.cxx

index 3207f78a05e087f8339a03ad0bf38d0c690e9eb7..29d0ca4b60808f7d81448b0fe1010f6d0b03c5d1 100644 (file)
@@ -1291,11 +1291,12 @@ TDF_Label SALOMEDS_StudyManager_i::PasteLabel(SALOMEDS_Study_i* theDestinationSt
                               aPastedSO->GetFatherComponent());
        SALOMEDS::lock();
        TDF_Tool::Label(theDestinationStart.Data(), aDestSO->GetID(), aTargetLabel);
-      }else 
+      }else {
        // PAL8065: san - PasteLabel() should always be called from some CORBA method protected with a lock
        SALOMEDS::unlock();
        theEngine->PasteInto(aTMPFil.in(),anObjID->Get(),aPastedSO);
        SALOMEDS::lock();
+      }        
     }
   }