Hi Phil,
I found out we do not need to change minPage. Changing toPage before
frompage should be enough.
Please find the modified webrev:
http://cr.openjdk.java.net/~psadhukhan/6357905/webrev.01/
Regards
Prasanta
On 3/29/2016 6:45 AM, Philip Race wrote:
Please add an evaluation to the bug report.
As to the fix I am under the impression that min&max page are
meant to constrain what the user can enter in the dialog so
if min page & max page are set to "1" then the problem
may be with those settings ?
i.e the application can set those values and expect the user
can't change them so updating our code to circumvent that
seems wrong.
-phil.
On 3/28/16, 1:38 AM, prasanta sadhukhan wrote:
Hi All,
Please review a print job attribute fix for jdk9.
Bug: https://bugs.openjdk.java.net/browse/JDK-6357905
webrev: http://cr.openjdk.java.net/~psadhukhan/6357905/webrev.00/
The issue was in the Print-dialog, when some pages are specified
using "Pages" within "Page range",
java.awt.JobAttributes.getFromPage() and getToPage() always returns "1"
and not the values as updated by the user.
The fix was to get the pageranges attribute as set by the user and
obtain the from and to Page range and update the JobAttribute's from
and to Page.
Regards
Prasanta