diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-11-06 19:00:58 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-11-06 19:00:58 (GMT) |
commit | be602ee76006d9b8b0f6e5e75114f2ce34f7773e (patch) | |
tree | 0a8fa55f942d3a0e2f845bc77e6a357b9fb1c1c7 /src/index.cpp | |
parent | 8a48f6c3f4827171edf41a40bfdbc03e53d9be6b (diff) | |
download | Doxygen-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.cpp | 10 |
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(); |