]> OCCT Git - occt-copy.git/commitdiff
0022976: A draw-command CopyDF failes to copy content of a label
authorVRO <>
Wed, 22 Feb 2012 07:33:32 +0000 (07:33 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:32:57 +0000 (19:32 +0400)
src/DDF/DDF_DataCommands.cxx

index 3dcda4bd1fd7babbdbf780041d8b5f6588a4b435..1e2e1f31f4bb4c9c9ce7f9a0c2495234857f756d 100755 (executable)
@@ -144,7 +144,7 @@ static Standard_Integer CopyDF (Draw_Interpretor& /*di*/,
 
 
   Handle(TDF_DataSet) DataSet = new TDF_DataSet;
-  DataSet->AddRoot(Label1);
+  DataSet->AddLabel(Label1);
   TDF_ClosureTool::Closure(DataSet);
   Handle(TDF_RelocationTable) Reloc = new TDF_RelocationTable();
   Reloc->SetRelocation(Label1,Label2);