From: Pavel Sanda Date: Sun, 19 Feb 2023 21:35:21 +0000 (+0100) Subject: lyxpaperview - fix viewer calls with additional arguments X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3a72e2c76bdd1818e2ae396ebe8916d3e26e0436;p=features.git lyxpaperview - fix viewer calls with additional arguments --- diff --git a/src/frontends/qt/qt_helpers.cpp b/src/frontends/qt/qt_helpers.cpp index 2657f3d6bc..01c5d7bde9 100644 --- a/src/frontends/qt/qt_helpers.cpp +++ b/src/frontends/qt/qt_helpers.cpp @@ -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;