summaryrefslogtreecommitdiffstats
path: root/src/rtfdocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-02-21 19:49:14 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-02-21 19:49:14 (GMT)
commita59571d7ad956270bb6459c17e0268c2b745a55e (patch)
tree2188e2ce6e3c8297a37a3957c0519ff52cebcb5b /src/rtfdocvisitor.cpp
parentfd72338cdf62e341d9846c6adf557175b30b760f (diff)
parenta09ffed2f603699955c18c19e0d3e782fb61d93f (diff)
downloadDoxygen-a59571d7ad956270bb6459c17e0268c2b745a55e.zip
Doxygen-a59571d7ad956270bb6459c17e0268c2b745a55e.tar.gz
Doxygen-a59571d7ad956270bb6459c17e0268c2b745a55e.tar.bz2
Merge pull request #297 from albert-github/feature/dot_index_png
Support generating index-color PNG files
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r--src/rtfdocvisitor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp
index 20fbf53..7c7f607 100644
--- a/src/rtfdocvisitor.cpp
+++ b/src/rtfdocvisitor.cpp
@@ -1676,7 +1676,8 @@ void RTFDocVisitor::writeDotFile(const QCString &fileName)
m_t << "{" << endl;
m_t << rtf_Style_Reset;
m_t << "\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
- m_t << baseName << "." << Config_getEnum("DOT_IMAGE_FORMAT");
+ QCString imgExt = getDotImageExtension();
+ m_t << baseName << "." << imgExt;
m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par" << endl;
m_t << "}" << endl;
m_lastIsPara=TRUE;