Remove PageRange attribute if range is not set

This commit is contained in:
Prasanta Sadhukhan 2026-01-21 06:20:31 +00:00
parent fe390b84d0
commit 15017ef8d9

View File

@ -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));