From 34006a69ea4798b0376f701b42db73fe068a3812 Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 14 Apr 2005 06:54:14 +0000 Subject: [PATCH] Fixed bug in the method Copy, now a clipboard document is re-created every time. --- src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx index edc8c7e7b..6221fe400 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx @@ -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) { -- 2.39.2