]> OCCT Git - occt-copy.git/commitdiff
fix for top notes on sub-shapes CR0_DMUReviewer_2_CR1050
authorsnn <snn@opencascade.com>
Mon, 1 Jul 2019 11:38:15 +0000 (14:38 +0300)
committerdbv <dmitry.bobylev@opencascade.com>
Sun, 28 Jul 2019 11:24:44 +0000 (14:24 +0300)
src/XCAFDoc/XCAFDoc_NotesTool.cxx

index 0a7aae76d0fa0048edb86b29e5f6c869d7c30cd1..0ca4e6b382894e9a54fc56fe6668efe70c8d4cff 100644 (file)
@@ -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))