changeset 20721:234589c84d4a stable

Fix rotated graphics when printing through ghostscript (bug #46435). * __ghostscript__.m: Add "-dAutoRotatePages=/None" to liste of base ghostscript options.
author Rik <rik@octave.org>
date Thu, 19 Nov 2015 08:21:01 -0800
parents a7903de9c359
children ab0d9d7f479c
files scripts/plot/util/private/__ghostscript__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__ghostscript__.m	Thu Nov 12 21:40:23 2015 +0100
+++ b/scripts/plot/util/private/__ghostscript__.m	Thu Nov 19 08:21:01 2015 -0800
@@ -66,7 +66,7 @@
     format_for_printer = true;
   endif
 
-  gs_opts = ["-dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=" opts.device];
+  gs_opts = ["-dQUIET -dNOPAUSE -dBATCH -dSAFER -dAutoRotatePages=/None -sDEVICE=" opts.device];
 
   if (! isempty (opts.level) && ismember (opts.level, [1, 2, 3]))
     gs_opts = sprintf ("%s -dLanguageLevel=%d", gs_opts, opts.level);