Skip to content

Commit

Permalink
Bug 738548 - latex: dead links to source code
Browse files Browse the repository at this point in the history
For Latex an extra dependency exists. In case Latex is set and LATEX_SOURCE_CODE is not set the writing of the "Definition in file" section is disabled.
  • Loading branch information
albert-github committed Oct 15, 2014
1 parent 258259f commit b68a4ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/filedef.cpp
Expand Up @@ -327,6 +327,13 @@ void FileDef::writeDetailedDescription(OutputList &ol,const QCString &title)
//printf("Writing source ref for file %s\n",name().data()); //printf("Writing source ref for file %s\n",name().data());
if (Config_getBool("SOURCE_BROWSER")) 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(); ol.startParagraph();
QCString refText = theTranslator->trDefinedInSourceFile(); QCString refText = theTranslator->trDefinedInSourceFile();
int fileMarkerPos = refText.find("@0"); int fileMarkerPos = refText.find("@0");
Expand All @@ -339,6 +346,8 @@ void FileDef::writeDetailedDescription(OutputList &ol,const QCString &title)
refText.length()-fileMarkerPos-2)); // text right from marker 2 refText.length()-fileMarkerPos-2)); // text right from marker 2
} }
ol.endParagraph(); ol.endParagraph();
//Restore settings, bug_738548
ol.popGeneratorState();
} }
ol.endTextBlock(); ol.endTextBlock();
} }
Expand Down

0 comments on commit b68a4ab

Please sign in to comment.