summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2010-11-06 19:00:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2010-11-06 19:00:58 (GMT)
commitbe602ee76006d9b8b0f6e5e75114f2ce34f7773e (patch)
tree0a8fa55f942d3a0e2f845bc77e6a357b9fb1c1c7 /src/index.cpp
parent8a48f6c3f4827171edf41a40bfdbc03e53d9be6b (diff)
downloadDoxygen-be602ee76006d9b8b0f6e5e75114f2ce34f7773e.zip
Doxygen-be602ee76006d9b8b0f6e5e75114f2ce34f7773e.tar.gz
Doxygen-be602ee76006d9b8b0f6e5e75114f2ce34f7773e.tar.bz2
Release-1.7.2-20101106
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 306f831..8031f56 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -3141,7 +3141,15 @@ void writeGraphInfo(OutputList &ol)
bool oldStripCommentsState = stripCommentsStateRef;
// temporarily disable the stripping of comments for our own code example!
stripCommentsStateRef = FALSE;
- ol.parseDoc("graph_legend",1,0,0,theTranslator->trLegendDocs(),FALSE,FALSE);
+ QCString legendDocs = theTranslator->trLegendDocs();
+ int s = legendDocs.find("<center>");
+ int e = legendDocs.find("</center>");
+ if (Config_getEnum("DOT_IMAGE_FORMAT")=="svg" && s!=-1 && e!=-1)
+ {
+ legendDocs = legendDocs.left(s+8) + "[!-- SVG 0 --]\n" + legendDocs.mid(e);
+ //printf("legendDocs=%s\n",legendDocs.data());
+ }
+ ol.parseDoc("graph_legend",1,0,0,legendDocs,FALSE,FALSE);
stripCommentsStateRef = oldStripCommentsState;
endFile(ol);
ol.popGeneratorState();