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 3dcda4b..1e2e1f3 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);