summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-07-28 10:21:23 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-07-28 10:21:23 (GMT)
commit30299da719fea492d07cf56b37537c45c52c52f0 (patch)
treeb6abc67c0aa0d95295c7b9a19b85634599cfd802 /src/index.cpp
parent67e9459af107094ecb7b36d993b03f4d80b9fca6 (diff)
downloadDoxygen-30299da719fea492d07cf56b37537c45c52c52f0.zip
Doxygen-30299da719fea492d07cf56b37537c45c52c52f0.tar.gz
Doxygen-30299da719fea492d07cf56b37537c45c52c52f0.tar.bz2
Prevent empty list
In cased of no items the start and end tag are written which gives problems in case of LaTeX (implementation now analogous to writeNamespaceIndex).
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 3c231fc..8e5f266 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -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;
@@ -1593,6 +1593,11 @@ static void writeAnnotatedClassList(OutputList &ol)
{
continue;
}
+ if (first)
+ {
+ ol.startIndexList();
+ first=FALSE;
+ }
ol.pushGeneratorState();
if (cd->isEmbeddedInOuterScope())
@@ -1635,7 +1640,7 @@ static void writeAnnotatedClassList(OutputList &ol)
}
ol.popGeneratorState();
}
- ol.endIndexList();
+ if (!first) ol.endIndexList();
}
inline bool isId1(int c)