]> OCCT Git - occt-copy.git/commitdiff
groups of notes added to XCAFDoc_NotesTool
authornds <nds@opencascade.com>
Mon, 14 Oct 2019 15:42:29 +0000 (18:42 +0300)
committernds <nds@opencascade.com>
Mon, 14 Oct 2019 15:42:29 +0000 (18:42 +0300)
src/XCAFDoc/XCAFDoc_NotesTool.cxx

index 90e5b20b74841158dfba01a9b2ef1e32d697bea6..1cc1ef2926c69534cf492ede1f5a35a3dce152f5 100644 (file)
@@ -606,7 +606,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);