From: VRO <> Date: Wed, 22 Feb 2012 07:33:32 +0000 (+0000) Subject: 0022976: A draw-command CopyDF failes to copy content of a label X-Git-Tag: V6_5_3_beta1~78 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=9f446594d79a7aa69986b8dce78d0c0a7b38607e;p=occt-copy.git 0022976: A draw-command CopyDF failes to copy content of a label --- diff --git a/src/DDF/DDF_DataCommands.cxx b/src/DDF/DDF_DataCommands.cxx index 3dcda4bd1f..1e2e1f31f4 100755 --- a/src/DDF/DDF_DataCommands.cxx +++ b/src/DDF/DDF_DataCommands.cxx @@ -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);