summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-09-28 15:20:26 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-09-28 15:20:26 (GMT)
commit54f60c116bdb22b6ec5a11ced9888ebe2785eb2b (patch)
treeee4ab8ab43eacfaaccc0f773733a68ddce11e396 /src
parent8e0e64c08eea1f43bec0773633268d2a0144615e (diff)
downloadDoxygen-54f60c116bdb22b6ec5a11ced9888ebe2785eb2b.zip
Doxygen-54f60c116bdb22b6ec5a11ced9888ebe2785eb2b.tar.gz
Doxygen-54f60c116bdb22b6ec5a11ced9888ebe2785eb2b.tar.bz2
Bug 708806 - Wrong path to graph_legend figure in graph_legend.html when CREATE_SUBDIRS = YES
Diffstat (limited to 'src')
-rw-r--r--src/index.cpp18
1 files 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("<center>");
int e = legendDocs.find("</center>");
@@ -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();
}