commit 3a72e2c76bdd1818e2ae396ebe8916d3e26e0436
Author: Pavel Sanda <sa...@lyx.org>
Date:   Sun Feb 19 22:35:21 2023 +0100

    lyxpaperview - fix viewer calls with additional arguments
---
 src/frontends/qt/qt_helpers.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/qt_helpers.cpp b/src/frontends/qt/qt_helpers.cpp
index 2657f3d..01c5d7b 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;
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to