summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authorFabrizio Oddone <fab@ixiacom.com>2013-12-24 00:50:03 (GMT)
committerFabrizio Oddone <fab@ixiacom.com>2013-12-24 00:50:03 (GMT)
commit89639705be473a39c6ff0eefb32edd8982a4bacb (patch)
treefc6676ecec000ce5a423321bd14c7905893e504f /src/htmldocvisitor.cpp
parent40b84627bdad3b1e03c0a6c603c6a7e299ce04c0 (diff)
downloadDoxygen-89639705be473a39c6ff0eefb32edd8982a4bacb.zip
Doxygen-89639705be473a39c6ff0eefb32edd8982a4bacb.tar.gz
Doxygen-89639705be473a39c6ff0eefb32edd8982a4bacb.tar.bz2
Add support for honoring svg image format preference in msc
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index 815a16d..6ccbda4 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -2031,8 +2031,12 @@ void HtmlDocVisitor::writeMscFile(const QCString &fileName,
}
baseName.prepend("msc_");
QCString outDir = Config_getString("HTML_OUTPUT");
- writeMscGraphFromFile(fileName,outDir,baseName,MSC_BITMAP);
- writeMscImageMapFromFile(m_t,fileName,outDir,relPath,baseName,context);
+ QCString imgExt = Config_getEnum("DOT_IMAGE_FORMAT");
+ MscOutputFormat mscFormat = MSC_BITMAP;
+ if ("svg" == imgExt)
+ mscFormat = MSC_SVG;
+ writeMscGraphFromFile(fileName,outDir,baseName,mscFormat);
+ writeMscImageMapFromFile(m_t,fileName,outDir,relPath,baseName,context,mscFormat);
}
void HtmlDocVisitor::writeDiaFile(const QCString &fileName,