]> OCCT Git - occt-copy.git/commitdiff
groups of notes bug fix CR0_DMUReviewer_2_WI_RC
authorsnn <snn@opencascade.com>
Fri, 21 Jun 2019 12:34:28 +0000 (15:34 +0300)
committersnn <snn@opencascade.com>
Mon, 1 Jul 2019 09:21:31 +0000 (12:21 +0300)
src/XCAFDoc/XCAFDoc_NotesTool.cxx

index 2521417df9aef0917773ee411b20c55925f98359..f5a95ac86c26ac2bc94ca3da8b6bff29924f0013 100644 (file)
@@ -528,7 +528,7 @@ XCAFDoc_NotesTool::RemoveFromGroup(const TDF_Label& theGroupLabel,
     Standard_Integer nbChildren = aFather->NbChildren();
     for (Standard_Integer iChild = 1; iChild <= nbChildren; ++iChild)
     {
-      Handle(XCAFDoc_GraphNode) aChild = aFather->GetFather(iChild);
+      Handle(XCAFDoc_GraphNode) aChild = aFather->GetChild(iChild);
       if (!aChild.IsNull() && theNoteLabel.IsEqual(aChild->Label()))
       {
         aFather->UnSetChild(aChild);