From a5ad0b11f55db4442363a2ae59e7de3a5ec6f755 Mon Sep 17 00:00:00 2001 From: snn Date: Fri, 17 Feb 2017 18:48:08 +0300 Subject: [PATCH] XCAF: bug fixes in notes tool --- src/XCAFDoc/XCAFDoc_NotesTool.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/XCAFDoc/XCAFDoc_NotesTool.cxx b/src/XCAFDoc/XCAFDoc_NotesTool.cxx index a51fd3accd..e70dbfaea0 100644 --- a/src/XCAFDoc/XCAFDoc_NotesTool.cxx +++ b/src/XCAFDoc/XCAFDoc_NotesTool.cxx @@ -210,7 +210,7 @@ XCAFDoc_NotesTool::AddNote(const TDF_Label& theNoteLabel, { TDF_TagSource aTag; anAnnotatedItem = aTag.NewChild(GetAnnotatedItemsLabel()); - if (!anAnnotatedItem.IsNull()) + if (anAnnotatedItem.IsNull()) return anItemRef; } @@ -236,6 +236,7 @@ XCAFDoc_NotesTool::AddNote(const TDF_Label& theNoteLabel, return anItemRef; } + aChild->SetFather(aFather); aFather->SetChild(aChild); return anItemRef;