diff options
author | albert-github <albert.tests@gmail.com> | 2020-04-30 16:26:34 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-04-30 16:26:34 (GMT) |
commit | eb96e89aa0038feacdf822f13e1c55e5c35f968b (patch) | |
tree | 002c7e3be65563dc3e8c921b410df0ffefcff2dd /src/reflist.cpp | |
parent | 6ca67aa0e617816789f2a662c86ad82426377b71 (diff) | |
download | Doxygen-eb96e89aa0038feacdf822f13e1c55e5c35f968b.zip Doxygen-eb96e89aa0038feacdf822f13e1c55e5c35f968b.tar.gz Doxygen-eb96e89aa0038feacdf822f13e1c55e5c35f968b.tar.bz2 |
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
Diffstat (limited to 'src/reflist.cpp')
-rw-r--r-- | src/reflist.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 += "<dl class=\"reflist\">"; QCString lastGroup; bool first=true; for (const std::unique_ptr<RefItem> &item : m_entries) { + if (!item->name()) continue; + cnt++; bool startNewGroup = item->group()!=lastGroup; if (startNewGroup) { @@ -96,6 +99,6 @@ void RefList::generatePage() } doc += "</dl>\n"; //printf("generatePage('%s')\n",doc.data()); - addRelatedPage(m_listName,m_pageTitle,doc,m_fileName,1,std::vector<RefItem*>(),0,0,TRUE); + if (cnt) addRelatedPage(m_listName,m_pageTitle,doc,m_fileName,1,std::vector<RefItem*>(),0,0,TRUE); } |