Permalink
Browse files

Bug 735926 - [PATCH] RTF output: \\diafile and \\mscfile do not work

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Sep 23, 2014
1 parent 8b39158 commit 7cd2b1f27a03846a8f9bcd1e4489cbfebf56bfa2
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/rtfdocvisitor.cpp
View
@@ -299,11 +299,12 @@ void RTFDocVisitor::visit(DocVerbatim *s)
static int mscindex = 1;
QCString baseName(4096);
baseName.sprintf("%s%d",
baseName.sprintf("%s%d%s",
(Config_getString("RTF_OUTPUT")+"/inline_mscgraph_").data(),
mscindex++
mscindex++,
".msc"
);
QFile file(baseName+".msc");
QFile file(baseName);
if (!file.open(IO_WriteOnly))
{
err("Could not open file %s for writing\n",baseName.data());
@@ -1685,7 +1686,7 @@ void RTFDocVisitor::writeMscFile(const QCString &fileName)
baseName=baseName.right(baseName.length()-i-1);
}
QCString outDir = Config_getString("RTF_OUTPUT");
writeMscGraphFromFile(fileName+".msc",outDir,baseName,MSC_BITMAP);
writeMscGraphFromFile(fileName,outDir,baseName,MSC_BITMAP);
if (!m_lastIsPara) m_t << "\\par" << endl;
m_t << "{" << endl;
m_t << rtf_Style_Reset;
@@ -1705,7 +1706,7 @@ void RTFDocVisitor::writeDiaFile(const QCString &fileName)
baseName=baseName.right(baseName.length()-i-1);
}
QCString outDir = Config_getString("RTF_OUTPUT");
writeDiaGraphFromFile(fileName+".dia",outDir,baseName,DIA_BITMAP);
writeDiaGraphFromFile(fileName,outDir,baseName,DIA_BITMAP);
if (!m_lastIsPara) m_t << "\\par" << endl;
m_t << "{" << endl;
m_t << rtf_Style_Reset;

0 comments on commit 7cd2b1f

Please sign in to comment.