changeset 14457:008a29999c3d

Save the papersize property in the proper orientation. * graphics.cc (figure::properties::update_papersize)
author Ben Abbott <bpabbott@mac.com>
date Mon, 12 Mar 2012 18:36:14 -0400
parents 05635e4c605a
children c288881669b9
files src/graphics.cc
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/graphics.cc
+++ b/src/graphics.cc
@@ -3656,6 +3656,11 @@
       // update_papersize and update_papertype
       papertype.set (typ);
     }
+  if (get_paperorientation () == "landscape")
+    {
+      std::swap (sz(0), sz(1));
+      papersize.set (octave_value (sz));
+    }
 }
 
 void