Permalink
Browse files

Bug 682373 - Math does not work in LaTeX with custom header and footer.

Reset current directory in case of return.
  • Loading branch information...
albert-github committed Jul 24, 2015
1 parent 45e153f commit c713984bf6a4c9e8c2ea393b304682ce4a56358f
Showing with 3 additions and 0 deletions.
  1. +2 −0 src/formula.cpp
  2. +1 −0 src/rtfgen.cpp
View
@@ -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();
View
@@ -2590,6 +2590,7 @@ bool RTFGenerator::preProcessFileInplace(const char *path,const char *name)
if (!outf.open(IO_WriteOnly))
{
err("Failed to open %s for writing!\n",combinedName.data());
QDir::setCurrent(oldDir);
return FALSE;
}
FTextStream outt(&outf);

0 comments on commit c713984

Please sign in to comment.