diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-06-03 09:24:48 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-06-03 09:24:48 (GMT) |
commit | a1528245b280f1068daad8cd850ea345a3f8b568 (patch) | |
tree | 060dc6ccdb347682a1d4b73ab3098d95599532f2 /src/formula.cpp | |
parent | a3b06c4fd310fdeda48a4730139cee09b5302072 (diff) | |
download | Doxygen-a1528245b280f1068daad8cd850ea345a3f8b568.zip Doxygen-a1528245b280f1068daad8cd850ea345a3f8b568.tar.gz Doxygen-a1528245b280f1068daad8cd850ea345a3f8b568.tar.bz2 |
Release-1.6.3-20100603
Diffstat (limited to 'src/formula.cpp')
-rw-r--r-- | src/formula.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/formula.cpp b/src/formula.cpp index d0e3843..149c06f 100644 --- a/src/formula.cpp +++ b/src/formula.cpp @@ -105,6 +105,7 @@ void FormulaList::generateBitmaps(const char *path) //system("latex _formulas.tex </dev/null >/dev/null"); QCString latexCmd = Config_getString("LATEX_CMD_NAME"); if (latexCmd.isEmpty()) latexCmd="latex"; + portable_sysTimerStart(); if (portable_system(latexCmd,"_formulas.tex")!=0) { err("Problems running latex. Check your installation or look " @@ -112,6 +113,7 @@ void FormulaList::generateBitmaps(const char *path) formulaError=TRUE; //return; } + portable_sysTimerStop(); //printf("Running dvips...\n"); QListIterator<int> pli(pagesToGenerate); int *pagePtr; @@ -127,11 +129,14 @@ void FormulaList::generateBitmaps(const char *path) // encapsulated postscript. sprintf(dviArgs,"-q -D 600 -E -n 1 -p %d -o %s.eps _formulas.dvi", pageIndex,formBase.data()); + portable_sysTimerStart(); if (portable_system("dvips",dviArgs)!=0) { err("Problems running dvips. Check your installation!\n"); + portable_sysTimerStop(); return; } + portable_sysTimerStop(); // now we read the generated postscript file to extract the bounding box QFileInfo fi(formBase+".eps"); if (fi.exists()) @@ -184,11 +189,14 @@ void FormulaList::generateBitmaps(const char *path) gx,gy,(int)(scaleFactor*72),(int)(scaleFactor*72), formBase.data(),formBase.data() ); + portable_sysTimerStart(); if (portable_system(portable_ghostScriptCommand(),gsArgs)!=0) { err("Problem running ghostscript %s %s. Check your installation!\n",portable_ghostScriptCommand(),gsArgs); + portable_sysTimerStop(); return; } + portable_sysTimerStop(); f.setName(formBase+".pnm"); uint imageX=0,imageY=0; // we read the generated image again, to obtain the pixel data. |