From: snn Date: Mon, 1 Jul 2019 11:38:15 +0000 (+0300) Subject: fix for top notes on sub-shapes X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a067b6b9ecc6749c050efeb1e5d4d59be3d276a5;p=occt-copy.git fix for top notes on sub-shapes --- diff --git a/src/XCAFDoc/XCAFDoc_NotesTool.cxx b/src/XCAFDoc/XCAFDoc_NotesTool.cxx index 0a7aae76d0..0ca4e6b382 100644 --- a/src/XCAFDoc/XCAFDoc_NotesTool.cxx +++ b/src/XCAFDoc/XCAFDoc_NotesTool.cxx @@ -149,7 +149,7 @@ XCAFDoc_NotesTool::GetNotes(TDF_LabelSequence& theNoteLabels) const } // ======================================================================= -// function : GetNotes +// function : GetTopNotes // purpose : // ======================================================================= void @@ -179,7 +179,7 @@ XCAFDoc_NotesTool::GetTopNotes(TDF_LabelSequence& theNoteLabels) const { Handle(XCAFDoc_GraphNode) aChild = aFather->GetChild(iChild); Handle(XCAFDoc_AssemblyItemRef) anItemRef = XCAFDoc_AssemblyItemRef::Get(aChild->Label()); - if (!anItemRef.IsNull() && !anItemRef->HasExtraRef()) + if (!anItemRef.IsNull()) { TDF_Label anAnnotatedLabel = anItemRef->GetItemLabel(); if (!anAnnotatedLabel.IsNull() && !XCAFDoc_Note::IsMine(anAnnotatedLabel))