summaryrefslogtreecommitdiffstats
path: root/src/diagram.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-12-17 15:15:12 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-12-17 15:15:12 (GMT)
commit00415514455991a9ff44b926c50adda994128924 (patch)
tree8face58cec7cf3e5e23acec30b6af55f5bed931c /src/diagram.cpp
parent5167cf2076e30ed3f6ddd84b76543a0dff207496 (diff)
downloadDoxygen-00415514455991a9ff44b926c50adda994128924.zip
Doxygen-00415514455991a9ff44b926c50adda994128924.tar.gz
Doxygen-00415514455991a9ff44b926c50adda994128924.tar.bz2
Release-1.2.3-20001217
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r--src/diagram.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp
index f9d803c..c60c44d 100644
--- a/src/diagram.cpp
+++ b/src/diagram.cpp
@@ -997,7 +997,8 @@ void ClassDiagram::writeFigure(QTextStream &output,const char *path,
QCString epsBaseName=(QCString)path+"/"+fileName;
QCString epsName=epsBaseName+".eps";
- QFile f1(epsName.data());
+ QFile f1;
+ f1.setName(epsName.data());
if (!f1.open(IO_WriteOnly))
{
err("Could not open file %s for writing\n",convertToQCString(f1.name()).data());
@@ -1234,11 +1235,11 @@ void ClassDiagram::writeFigure(QTextStream &output,const char *path,
f1.close();
if (Config::usePDFLatexFlag)
{
- QCString epstopdfCmd(4096);
- //epstopdfCmd.sprintf("epstopdf \"%s.eps\" -outfile=\"%s.pdf\"",
- // epsBaseName.data(),epsBaseName.data());
+ QCString epstopdfArgs(4096);
+ epstopdfArgs.sprintf("\"%s.eps\" -outfile=\"%s.pdf\"",
+ epsBaseName.data(),epsBaseName.data());
//printf("Converting eps using `%s'\n",epstopdfCmd.data());
- if (iSystem(epstopdfCmd)!=0)
+ if (iSystem("epstopdf",epstopdfArgs)!=0)
{
err("Error: Problems running epstopdf. Check your TeX installation!\n");
return;