From 54f60c116bdb22b6ec5a11ced9888ebe2785eb2b Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 28 Sep 2013 17:20:26 +0200 Subject: Bug 708806 - Wrong path to graph_legend figure in graph_legend.html when CREATE_SUBDIRS = YES --- src/index.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/index.cpp b/src/index.cpp index 5e9ed36..cfa3e02 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -3300,15 +3300,21 @@ void writeGraphInfo(OutputList &ol) ol.pushGeneratorState(); ol.disableAllBut(OutputGenerator::Html); generateGraphLegend(Config_getString("HTML_OUTPUT")); + + bool &stripCommentsStateRef = Config_getBool("STRIP_CODE_COMMENTS"); + bool oldStripCommentsState = stripCommentsStateRef; + bool &createSubdirs = Config_getBool("CREATE_SUBDIRS"); + bool oldCreateSubdirs = createSubdirs; + // temporarily disable the stripping of comments for our own code example! + stripCommentsStateRef = FALSE; + // temporarily disable create subdirs for linking to our example + createSubdirs = FALSE; + startFile(ol,"graph_legend",0,theTranslator->trLegendTitle().data()); startTitle(ol,0); ol.parseText(theTranslator->trLegendTitle()); endTitle(ol,0,0); ol.startContents(); - bool &stripCommentsStateRef = Config_getBool("STRIP_CODE_COMMENTS"); - bool oldStripCommentsState = stripCommentsStateRef; - // temporarily disable the stripping of comments for our own code example! - stripCommentsStateRef = FALSE; QCString legendDocs = theTranslator->trLegendDocs(); int s = legendDocs.find("
"); int e = legendDocs.find("
"); @@ -3319,7 +3325,11 @@ void writeGraphInfo(OutputList &ol) } FileDef fd("","graph_legend"); ol.generateDoc("graph_legend",1,&fd,0,legendDocs,FALSE,FALSE); + + // restore config settings stripCommentsStateRef = oldStripCommentsState; + createSubdirs = oldCreateSubdirs; + endFile(ol); ol.popGeneratorState(); } -- cgit v0.12