1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00

XCAF: bug fixes in notes tool

This commit is contained in:
snn 2017-02-17 18:48:08 +03:00
parent 8feb46bb5d
commit a5ad0b11f5

View File

@ -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;