summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-10-21 18:08:57 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-10-21 18:08:57 (GMT)
commita8dc1a8437716821774691d8209c920a8946a326 (patch)
tree7457ee4109e1cbd1731c9297b33941604d6df7f2
parent0f100cabf9d66a9d0ddc93d0d43df82aa25792a5 (diff)
parentb68a4abcfa22e68fd94487a8f2b48588eda5a1af (diff)
downloadDoxygen-a8dc1a8437716821774691d8209c920a8946a326.zip
Doxygen-a8dc1a8437716821774691d8209c920a8946a326.tar.gz
Doxygen-a8dc1a8437716821774691d8209c920a8946a326.tar.bz2
Merge pull request #239 from albert-github/feature/bug_738548
Bug 738548 - latex: dead links to source code
-rw-r--r--src/filedef.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index 9c18e20..3ff69a4 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -327,6 +327,13 @@ void FileDef::writeDetailedDescription(OutputList &ol,const QCString &title)
//printf("Writing source ref for file %s\n",name().data());
if (Config_getBool("SOURCE_BROWSER"))
{
+ //if Latex enabled and LATEX_SOURCE_CODE isn't -> skip, bug_738548
+ ol.pushGeneratorState();
+ if (ol.isEnabled(OutputGenerator::Latex) && !Config_getBool("LATEX_SOURCE_CODE"))
+ {
+ ol.disable(OutputGenerator::Latex);
+ }
+
ol.startParagraph();
QCString refText = theTranslator->trDefinedInSourceFile();
int fileMarkerPos = refText.find("@0");
@@ -339,6 +346,8 @@ void FileDef::writeDetailedDescription(OutputList &ol,const QCString &title)
refText.length()-fileMarkerPos-2)); // text right from marker 2
}
ol.endParagraph();
+ //Restore settings, bug_738548
+ ol.popGeneratorState();
}
ol.endTextBlock();
}