From 4c20acdb98eed7928015ed8d6ed739db0ccdaed6 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 9 Jan 2020 13:11:07 +0100 Subject: issue #7484 Error: /undefined in getenv The command `ps2epsi` also uses the `gs` command and this gives some problems with the gs9.50 version. An alternative is the `eps2eps` command that doesn't have these problems with the gs9.50 version. See also: - #7290 - https://bugs.ghostscript.com/show_bug.cgi?id=702024 --- src/formula.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/formula.cpp b/src/formula.cpp index 64555c9..01a96b3 100644 --- a/src/formula.cpp +++ b/src/formula.cpp @@ -151,13 +151,13 @@ void FormulaList::generateBitmaps(const char *path) return; } Portable::sysTimerStop(); - // run ps2epsi to convert to an encapsulated postscript file with + // run eps2eps to convert to an encapsulated postscript file with // boundingbox (dvips with -E has some problems here). sprintf(psArgs,"%s_tmp.ps %s.eps",formBase.data(),formBase.data()); Portable::sysTimerStart(); - if (Portable::system("ps2epsi",psArgs)!=0) + if (Portable::system("eps2eps",psArgs)!=0) { - err("Problems running ps2epsi. Check your installation!\n"); + err("Problems running eps2eps. Check your installation!\n"); Portable::sysTimerStop(); QDir::setCurrent(oldDir); return; -- cgit v0.12