summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-07-24 13:53:14 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-07-24 13:53:14 (GMT)
commitc713984bf6a4c9e8c2ea393b304682ce4a56358f (patch)
tree95d4c5c8d94d56fc07ccc65ff0e53147535203ea /src/formula.cpp
parent45e153f2238d0fa031d147cfe207e52b913845eb (diff)
downloadDoxygen-c713984bf6a4c9e8c2ea393b304682ce4a56358f.zip
Doxygen-c713984bf6a4c9e8c2ea393b304682ce4a56358f.tar.gz
Doxygen-c713984bf6a4c9e8c2ea393b304682ce4a56358f.tar.bz2
Bug 682373 - Math does not work in LaTeX with custom header and footer.
Reset current directory in case of return.
Diffstat (limited to 'src/formula.cpp')
-rw-r--r--src/formula.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/formula.cpp b/src/formula.cpp
index ad37782..182ddaa 100644
--- a/src/formula.cpp
+++ b/src/formula.cpp
@@ -132,6 +132,7 @@ void FormulaList::generateBitmaps(const char *path)
{
err("Problems running dvips. Check your installation!\n");
portable_sysTimerStop();
+ QDir::setCurrent(oldDir);
return;
}
portable_sysTimerStop();
@@ -192,6 +193,7 @@ void FormulaList::generateBitmaps(const char *path)
{
err("Problem running ghostscript %s %s. Check your installation!\n",portable_ghostScriptCommand(),gsArgs);
portable_sysTimerStop();
+ QDir::setCurrent(oldDir);
return;
}
portable_sysTimerStop();