Skip to content

Commit

Permalink
Bug 682373 - Math does not work in LaTeX with custom header and footer.
Browse files Browse the repository at this point in the history
Reset current directory in case of return.
  • Loading branch information
albert-github committed Jul 24, 2015
1 parent 45e153f commit c713984
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/formula.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/rtfgen.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit c713984

Please sign in to comment.