diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-02-08 18:36:07 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-02-08 18:36:07 (GMT) |
commit | 19119105076ca1b361b11b49df61050879c1e054 (patch) | |
tree | 918babf3afc522698cc5ff63bd28ff5f8897964a /src/formula.cpp | |
parent | ea50604595d368f3b9a63a3dbfe55d984986abb0 (diff) | |
download | Doxygen-19119105076ca1b361b11b49df61050879c1e054.zip Doxygen-19119105076ca1b361b11b49df61050879c1e054.tar.gz Doxygen-19119105076ca1b361b11b49df61050879c1e054.tar.bz2 |
mods for doxygen-1.0.0
Diffstat (limited to 'src/formula.cpp')
-rw-r--r-- | src/formula.cpp | 18 |
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. |