Skip to content

Commit

Permalink
Prevent empty list
Browse files Browse the repository at this point in the history
In cased of no items the start and end tag are written which gives problems in case of LaTeX (implementation now analogous to writeNamespaceIndex).
  • Loading branch information
albert-github committed Jul 28, 2018
1 parent 67e9459 commit 30299da
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1579,8 +1579,8 @@ static void writeAnnotatedClassList(OutputList &ol)
{
//LayoutNavEntry *lne = LayoutDocManager::instance().rootNavEntry()->find(LayoutNavEntry::ClassList);
//bool addToIndex = lne==0 || lne->visible();
bool first=TRUE;

ol.startIndexList();
ClassSDict::Iterator cli(*Doxygen::classSDict);
ClassDef *cd;

Expand All @@ -1593,6 +1593,11 @@ static void writeAnnotatedClassList(OutputList &ol)
{
continue;
}
if (first)
{
ol.startIndexList();
first=FALSE;
}

ol.pushGeneratorState();
if (cd->isEmbeddedInOuterScope())
Expand Down Expand Up @@ -1635,7 +1640,7 @@ static void writeAnnotatedClassList(OutputList &ol)
}
ol.popGeneratorState();
}
ol.endIndexList();
if (!first) ol.endIndexList();
}

inline bool isId1(int c)
Expand Down

0 comments on commit 30299da

Please sign in to comment.