lyxpaperview - fix viewer calls with additional arguments

This commit is contained in:
Pavel Sanda 2023-02-19 22:35:21 +01:00
parent be0341edd3
commit 3a72e2c76b

View File

@ -299,9 +299,9 @@ void showTarget(string const & target, string const & pdfv, string const & psv)
string tmp, tar, opts;
tar = split(target, tmp, ' ');
if (!pdfv.empty())
opts = " -v " + pdfv;
opts = " -v \"" + pdfv + "\"";
if (!psv.empty())
opts += " -w " + psv;
opts += " -w \"" + psv + "\"";
if (!opts.empty())
opts += " ";
Systemcall one;