fix get-default-print-size n landscape mode

svn: r16942
This commit is contained in:
Matthew Flatt 2009-11-21 16:17:08 +00:00
parent 7b05f75878
commit fbf7f79d8c

View File

@ -97,9 +97,9 @@
(set-box! w PAGE-WIDTH)
(set-box! h PAGE-HEIGHT)
(when (eq? (get-printer-orientation) 'landscape)
(let ([tmp h])
(set! h w)
(set! w tmp))))
(let ([tmp (unbox h)])
(set-box! h (unbox w))
(set-box! w tmp))))
;; ----------------------------------------