From: snn Date: Fri, 21 Jun 2019 12:34:28 +0000 (+0300) Subject: groups of notes bug fix X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=e2e4232e8c6ca835731f34850ffe6a4f6f5dfee4;p=occt-copy.git groups of notes bug fix --- diff --git a/src/XCAFDoc/XCAFDoc_NotesTool.cxx b/src/XCAFDoc/XCAFDoc_NotesTool.cxx index 2521417df9..f5a95ac86c 100644 --- a/src/XCAFDoc/XCAFDoc_NotesTool.cxx +++ b/src/XCAFDoc/XCAFDoc_NotesTool.cxx @@ -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);