summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-11-06 19:00:58 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-11-06 19:00:58 (GMT)
commit01f41c40b8505c8f197ef1e5bf7e3a3bc777dc0e (patch)
tree0a8fa55f942d3a0e2f845bc77e6a357b9fb1c1c7 /src/index.cpp
parenta32c2461bfbe6705159abfcae92fb11f1309b37c (diff)
downloadDoxygen-01f41c40b8505c8f197ef1e5bf7e3a3bc777dc0e.zip
Doxygen-01f41c40b8505c8f197ef1e5bf7e3a3bc777dc0e.tar.gz
Doxygen-01f41c40b8505c8f197ef1e5bf7e3a3bc777dc0e.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();