[LyX/master] lyxpaperview - fix viewer calls with additional arguments

Pavel Sanda sanda at lyx.org
Sun Feb 19 20:34:32 UTC 2023


commit 3a72e2c76bdd1818e2ae396ebe8916d3e26e0436
Author: Pavel Sanda <sanda at 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;


More information about the lyx-cvs mailing list