From: snn Date: Tue, 6 Nov 2018 08:32:32 +0000 (+0300) Subject: 0030341: XCAFDoc_GraphNode doesn't copy children upon pasting X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=f23a80dc79cae63db608d6a5e0ca076233c2d4eb;p=occt-copy.git 0030341: XCAFDoc_GraphNode doesn't copy children upon pasting --- diff --git a/src/XCAFDoc/XCAFDoc_GraphNode.cxx b/src/XCAFDoc/XCAFDoc_GraphNode.cxx index 9aa7af0e55..0e904a6c0c 100644 --- a/src/XCAFDoc/XCAFDoc_GraphNode.cxx +++ b/src/XCAFDoc/XCAFDoc_GraphNode.cxx @@ -356,7 +356,7 @@ void XCAFDoc_GraphNode::Paste(const Handle(TDF_Attribute)& into, if (!RT->HasRelocation(myChildren(i), func) && RT->AfterRelocate()) { func.Nullify(); } - intof->SetFather(func); + intof->SetChild(func); } intof->SetGraphID(myGraphID); }