changeset 11333:492e7b587352

Convert print resolution from char to double. Fixes bug #31834.
author Rik <octave@nomad.inbox5.com>
date Thu, 09 Dec 2010 11:02:21 -0800
parents 4d0cfbe59fd2
children 703f51c2beb7
files scripts/ChangeLog scripts/plot/__print_parse_opts__.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Thu Dec 09 10:43:41 2010 -0800
+++ b/scripts/ChangeLog	Thu Dec 09 11:02:21 2010 -0800
@@ -1,3 +1,8 @@
+2010-12-09  Rik  <octave@nomad.inbox5.com>
+
+	* plot/__print_parse_opts__.m: Convert print resolution from char to
+	double.  Fixes Bug #31834.
+
 2010-12-09  Rik  <octave@nomad.inbox5.com>
 
 	* plot/private/__pie__.m: Allow logical indices for 'explode' variable.
--- a/scripts/plot/__print_parse_opts__.m	Thu Dec 09 10:43:41 2010 -0800
+++ b/scripts/plot/__print_parse_opts__.m	Thu Dec 09 11:02:21 2010 -0800
@@ -138,7 +138,7 @@
       elseif (length (arg) > 2 && arg(1:2) == "-S")
         arg_st.canvas_size = str2num (arg(3:end));
       elseif (length (arg) > 2 && arg(1:2) == "-r")
-        arg_st.ghostscript.resolution = arg(3:end);
+        arg_st.ghostscript.resolution = str2double (arg(3:end));
       elseif (length (arg) > 2 && arg(1:2) == "-f")
         arg_st.figure = str2num (arg(3:end));
       elseif (length (arg) >= 1 && arg(1) == "-")