diff options
author | smallsql <smallsql> | 2012-08-23 13:24:50 +0400 |
---|---|---|
committer | smallsql <smallsql> | 2012-08-23 13:24:50 +0400 |
commit | 4b39a908cb3217a563e2367d90f5ddf30f7dde26 (patch) | |
tree | 9fc0d0a0d97bdfa4bfe898f1798ccf48d1104bd0 /openjdk/sun/print | |
parent | feadf74ac10c70bb67ebf6c62c2cd81bbe991dab (diff) |
MediaSizes must always portrait.
Diffstat (limited to 'openjdk/sun/print')
-rw-r--r-- | openjdk/sun/print/Win32PrintService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openjdk/sun/print/Win32PrintService.java b/openjdk/sun/print/Win32PrintService.java index a81730af..e95c094b 100644 --- a/openjdk/sun/print/Win32PrintService.java +++ b/openjdk/sun/print/Win32PrintService.java @@ -364,7 +364,7 @@ public class Win32PrintService implements PrintService { } else if (category == PageRanges.class) { return new PageRanges(1, Integer.MAX_VALUE ); } else if (category == Media.class) { - int rawKind = settings.get_DefaultPageSettings().get_PaperSize().get_RawKind(); + int rawKind = settings.get_DefaultPageSettings().get_PaperSize().get_RawKind(); if( rawKind > MEDIA_NAMES.length || rawKind < 1 || MEDIA_NAMES[ rawKind - 1 ] == null ){ // custom page format return findMatchingMedia( settings.get_DefaultPageSettings().get_PaperSize() ); } else { @@ -683,7 +683,7 @@ public class Win32PrintService implements PrintService { if (media == null) { media = new CustomMediaSizeName(paper.get_PaperName()); CUSTOM_MEDIA_NAME.put(paper.get_PaperName(), media); - new MediaSize(paper.get_Width(), paper.get_Height(), MediaSize.INCH/100, media); + new MediaSize( x, y, MediaSize.INCH/100, media); } return media; } |