From eb96e89aa0038feacdf822f13e1c55e5c35f968b Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 30 Apr 2020 18:26:34 +0200 Subject: issue #7738 \todo ignores EXCLUDE_SYMBOLS In case a xref item has no reference the name is empty and thus the item should not be displayed. As it is possible that none of the items have a reference the page should only be added when there are item available to display --- src/reflist.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/reflist.cpp b/src/reflist.cpp index 26d20ae..bc97823 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -40,11 +40,14 @@ void RefList::generatePage() { return qstricmp(left->title(),left->title()); }); //RefItem *item; QCString doc; + int cnt = 0; doc += "
"; QCString lastGroup; bool first=true; for (const std::unique_ptr &item : m_entries) { + if (!item->name()) continue; + cnt++; bool startNewGroup = item->group()!=lastGroup; if (startNewGroup) { @@ -96,6 +99,6 @@ void RefList::generatePage() } doc += "
\n"; //printf("generatePage('%s')\n",doc.data()); - addRelatedPage(m_listName,m_pageTitle,doc,m_fileName,1,std::vector(),0,0,TRUE); + if (cnt) addRelatedPage(m_listName,m_pageTitle,doc,m_fileName,1,std::vector(),0,0,TRUE); } -- cgit v0.12