If same `PrinterJob `is reused to first print user-set `PageRange `pages and 
then print ALL pages, it prints the first print job correctly as the page range 
is set but 2nd job doesn't print ALL pages and reprint the same page range as 
`from` and `to` page are not reset and reused

Fix is made to check if page range is not set then print all pages

-------------

Commit messages:
 - 8373239: Test java/awt/print/PrinterJob/PageRanges.java fails with incorrect 
selection of printed pages

Changes: https://git.openjdk.org/jdk/pull/29312/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29312&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8373239
  Stats: 5 lines in 2 files changed: 3 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/29312.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29312/head:pull/29312

PR: https://git.openjdk.org/jdk/pull/29312

Reply via email to