From a0be73d6eb529295cbc8fdfe0a0bbf38ebf5a0c2 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 5 Jan 2019 14:44:28 +0100 Subject: issue #6727 SHOW_NAMESPACES = NO breaks latex PDF Only write the namespace index file reference (i.e. namespaces.tex , namespaces.rtf) to the overall file (i.e. refman.tex. refman.rtf) in case SHOW_NAMESPACES is set and there are namespaces. --- src/index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.cpp b/src/index.cpp index 7bb9574..5d16e4e 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -4670,7 +4670,7 @@ static void writeIndex(OutputList &ol) ol.parseText(/*projPrefix+*/ theTranslator->trModuleIndex()); ol.endIndexSection(isModuleIndex); } - if (documentedNamespaces>0) + if (Config_getBool(SHOW_NAMESPACES) && (documentedNamespaces>0)) { ol.startIndexSection(isNamespaceIndex); ol.parseText(/*projPrefix+*/(fortranOpt?theTranslator->trModulesIndex():theTranslator->trNamespaceIndex())); -- cgit v0.12