On Tue, 25 Nov 2025 17:50:48 GMT, Alexey Ivanov <[email protected]> wrote:

> Indeed, it fixes this bug, but it breaks 
> [JDK-8061258](https://bugs.openjdk.org/browse/JDK-8061258) and its test 
> `java/awt/print/PrinterJob/DlgAttrsBug.java`… or maybe not because 
> `DlgAttrsBug.java` fails without either version of the fix.

Since `javaPrinterJobToNSPrintInfo` is called before showing the print dialog 
and from the printing loop, commenting out the code that sets `from` and `to` 
pages will likely break selection in the print dialog.

Therefore, we're left with only one option that's proposed in this PR: do not 
set the real page range before starting the print loop.

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

PR Comment: https://git.openjdk.org/jdk/pull/11266#issuecomment-3576836217

Reply via email to