Skip to content

Commit

Permalink
issue #7738 \todo ignores EXCLUDE_SYMBOLS
Browse files Browse the repository at this point in the history
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
  • Loading branch information
albert-github committed Apr 30, 2020
1 parent 6ca67aa commit eb96e89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/reflist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
}

0 comments on commit eb96e89

Please sign in to comment.