]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
IPAL22481 - TC6.3.0: SIGSEGV calling copy-paste of objects BR_Dev_For_6_3_1 V6_3_0 V6_3_0b2 V6_3_0rc1
authorvsr <vsr@opencascade.com>
Thu, 19 May 2011 11:44:58 +0000 (11:44 +0000)
committervsr <vsr@opencascade.com>
Thu, 19 May 2011 11:44:58 +0000 (11:44 +0000)
Fix bug with observers - paste operation was not handled

src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx

index b809a9c9d90b66ee3d131707f7ede7fd26b58ea2..b374fb936c7f870cb338d75a7dfa6ffef9085127 100644 (file)
@@ -1125,6 +1125,8 @@ DF_Label SALOMEDSImpl_StudyManager::PasteLabel(SALOMEDSImpl_Study* theDestinatio
       aTargetLabel = aTargetLabel.FindChild(aSourceLabel.Tag());
       aAuxSourceLabel = aAuxSourceLabel.FindChild(aSourceLabel.Tag());
     }
+    SALOMEDSImpl_SObject so = theDestinationStudy->GetSObject(aTargetLabel);
+    theDestinationStudy->addSO_Notification(so);
   }
 
   // check auxiliary label for TMPFile => IOR