Skip to content

Commit

Permalink
Running Inkscape 1.0
Browse files Browse the repository at this point in the history
On subsequent calls we should know which inkscape version we have when this is not the case we already tried to determine it, but it failed so we should bail out here without error as an error has already been given.
  • Loading branch information
albert-github committed May 9, 2020
1 parent 569829a commit d9ced2a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/formula.cpp
Expand Up @@ -383,10 +383,18 @@ void FormulaManager::generateImages(const char *path,Format format,HighDPI hd) c
{
sprintf(args,"-l form_%d.svg -z %s_tmp.pdf 2>%s",pageNum,formBase.data(),Portable::devNull());
}
else
else if (inkscapeVersion == 1)
{
sprintf(args,"--export-type=svg --export-filename=form_%d.svg %s_tmp.pdf 2>%s",pageNum,formBase.data(),Portable::devNull());
}
else
{
// on subsequent calls we should know which inkscape version we have
// when this is not the case we already tried to determine it, but it failed
// so we should bail out here without error as an error has already been given.
QDir::setCurrent(oldDir);
return;
}
Portable::sysTimerStart();
if (Portable::system("inkscape",args)!=0)
{
Expand Down

0 comments on commit d9ced2a

Please sign in to comment.