summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
authormueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-02-08 18:36:07 (GMT)
committermueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-02-08 18:36:07 (GMT)
commit6e9c313b87a0daa86ca108e93d67fc4c9e5bec68 (patch)
tree918babf3afc522698cc5ff63bd28ff5f8897964a /src/formula.cpp
parent5620fa248663fa5ee8b2d8a26d773df60c2a4994 (diff)
downloadDoxygen-6e9c313b87a0daa86ca108e93d67fc4c9e5bec68.zip
Doxygen-6e9c313b87a0daa86ca108e93d67fc4c9e5bec68.tar.gz
Doxygen-6e9c313b87a0daa86ca108e93d67fc4c9e5bec68.tar.bz2
mods for doxygen-1.0.0
Diffstat (limited to 'src/formula.cpp')
-rw-r--r--src/formula.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/formula.cpp b/src/formula.cpp
index 978307d..174ab36 100644
--- a/src/formula.cpp
+++ b/src/formula.cpp
@@ -90,7 +90,11 @@ void FormulaList::generateBitmaps(const char *path)
{
//printf("Running latex...\n");
//system("latex _formulas.tex </dev/null >/dev/null");
- system("latex _formulas.tex");
+ if (system("latex _formulas.tex")!=0)
+ {
+ err("Problems running latex. Check your installation or look at _formulas.tex!\n");
+ return;
+ }
//printf("Running dvips...\n");
QListIterator<int> pli(pagesToGenerate);
int *pagePtr;
@@ -106,7 +110,11 @@ void FormulaList::generateBitmaps(const char *path)
// encapsulated postscript.
sprintf(dviCmd,"dvips -q -D 600 -E -n 1 -p %d -o %s.eps _formulas.dvi",
pageIndex,formBase.data());
- system(dviCmd);
+ if (system(dviCmd)!=0)
+ {
+ err("Problems running dvips. Check your installation!\n");
+ return;
+ }
// now we read the generated postscript file to extract the bounding box
QFileInfo fi(formBase+".eps");
if (fi.exists())
@@ -164,7 +172,11 @@ void FormulaList::generateBitmaps(const char *path)
);
#endif
//printf("Running ghostscript...\n");
- system(gsCmd);
+ if (system(gsCmd)!=0)
+ {
+ err("Problem running ghostscript. Check your installation!\n");
+ return;
+ }
f.setName(formBase+".pnm");
uint imageX=0,imageY=0;
// we read the generated image again, to obtain the pixel data.