diff options
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 05d5b72..4dd4e06 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -606,8 +606,7 @@ void LatexGenerator::endIndexSection(IndexSections is) break; case isMainPage: { - QCString indexName="index"; - if (Config_getBool("GENERATE_TREEVIEW")) indexName="main"; + QCString indexName=usingTreeIndex()?"main":"index"; t << "}\n\\label{index}"; if (Config_getBool("PDF_HYPERLINKS")) t << "\\hypertarget{index}{}"; t << "\\input{" << indexName << "}\n"; |