mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
Remove PageRange attribute if range is not set
This commit is contained in:
parent
fe390b84d0
commit
15017ef8d9
@ -1734,8 +1734,7 @@ public final class WPrinterJob extends RasterPrinterJob
|
||||
attributes.add(new PageRanges(from, to));
|
||||
setPageRange(from, to);
|
||||
} else {
|
||||
attributes.add(new PageRanges(1, 9999));
|
||||
setPageRange(1, 9999);
|
||||
attributes.remove(PageRanges.class);
|
||||
}
|
||||
defaultCopies = false;
|
||||
attributes.add(new Copies(copies));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user