]> git.lyx.org Git - features.git/commitdiff
lyxpaperview - fix viewer calls with additional arguments
authorPavel Sanda <sanda@lyx.org>
Sun, 19 Feb 2023 21:35:21 +0000 (22:35 +0100)
committerPavel Sanda <sanda@lyx.org>
Sun, 19 Feb 2023 21:35:21 +0000 (22:35 +0100)
src/frontends/qt/qt_helpers.cpp

index 2657f3d6bc35a5d437603e7268f0344040226251..01c5d7bde968941319e4ca89851d8105b0c31111 100644 (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;