]> OCCT Git - occt-copy.git/commitdiff
0030341: XCAFDoc_GraphNode doesn't copy children upon pasting
authorsnn <snn@opencascade.com>
Tue, 6 Nov 2018 08:32:32 +0000 (11:32 +0300)
committersnn <snn@opencascade.com>
Tue, 6 Nov 2018 08:34:00 +0000 (11:34 +0300)
src/XCAFDoc/XCAFDoc_GraphNode.cxx

index 9aa7af0e55d9876593a57155bf019eb417744251..0e904a6c0cf40ad417937d8860ba7c548e0147e8 100644 (file)
@@ -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);
 }