From: nds Date: Tue, 15 Oct 2019 07:58:56 +0000 (+0300) Subject: Revert "groups of notes added to XCAFDoc_NotesTool" X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=63c48876e46780d4f8f61bf1841c0a35b3094000;p=occt-copy.git Revert "groups of notes added to XCAFDoc_NotesTool" This reverts commit bf2a25e0928383da7aa9cd0d2ad61d86761a7fc5. --- diff --git a/src/XCAFDoc/XCAFDoc_NotesTool.cxx b/src/XCAFDoc/XCAFDoc_NotesTool.cxx index 1cc1ef2926..90e5b20b74 100644 --- a/src/XCAFDoc/XCAFDoc_NotesTool.cxx +++ b/src/XCAFDoc/XCAFDoc_NotesTool.cxx @@ -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->GetChild(iChild); + Handle(XCAFDoc_GraphNode) aChild = aFather->GetFather(iChild); if (!aChild.IsNull() && theNoteLabel.IsEqual(aChild->Label())) { aFather->UnSetChild(aChild);