changeset 24688:dd68506c0926

Fix print "-S" option parsing (bug #45285) * __print_parse_opts__.m: split "-S" arguments before converting to double
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Mon, 05 Feb 2018 22:14:34 +0100
parents 8b935067a257
children 800876b7132c
files scripts/plot/util/private/__print_parse_opts__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__print_parse_opts__.m	Wed Jan 31 23:22:51 2018 +0100
+++ b/scripts/plot/util/private/__print_parse_opts__.m	Mon Feb 05 22:14:34 2018 +0100
@@ -149,7 +149,7 @@
           arg_st.font = arg(3:end);
         endif
       elseif (length (arg) > 2 && arg(1:2) == "-S")
-        arg_st.canvas_size = str2double (arg(3:end));
+        arg_st.canvas_size = str2double (strsplit (arg(3:end), ","));
       elseif (length (arg) > 2 && arg(1:2) == "-r")
         arg_st.ghostscript.resolution = str2double (arg(3:end));
       elseif (length (arg) > 2 && arg(1:2) == "-f")