]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fixed bug in the method Copy, now a clipboard document is re-created every time.
authorsrn <srn@opencascade.com>
Thu, 14 Apr 2005 06:54:14 +0000 (06:54 +0000)
committersrn <srn@opencascade.com>
Thu, 14 Apr 2005 06:54:14 +0000 (06:54 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx

index edc8c7e7b4a573a474a70662db7882f9e5d00cd2..6221fe4007c0fb1f7bb7cac937c85698a22791b1 100644 (file)
@@ -897,6 +897,10 @@ bool SALOMEDSImpl_StudyManager::Copy(const Handle(SALOMEDSImpl_SObject)& theObje
 
   //Clear the clipboard
   _clipboard->Main().Root().ForgetAllAttributes(Standard_True);
+  _OCAFApp->Close(_clipboard);
+  Handle(TDocStd_Document) aDoc;
+  _OCAFApp->NewDocument("SALOME_STUDY", aDoc); 
+  _clipboard = aDoc;
 
   // set component data type to the name attribute of root label
   if (!aStructureOnly) {