From 6c046af3e645385263a59519c736c4c51442e901 Mon Sep 17 00:00:00 2001 From: snn Date: Mon, 1 Jul 2019 14:23:43 +0300 Subject: [PATCH] fix for top notes on sub-shapes --- src/XCAFDoc/XCAFDoc_NotesTool.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.39.5