mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8066139: Null return from PrintJob.getGraphics() running closed/java/awt/PrintJob/HighResTest/HighResTest.java
Co-authored-by: Philip Race <philip.race@oracle.com> Reviewed-by: prr, jdv
This commit is contained in:
parent
23d01d22cd
commit
e20ce427c2
3 changed files with 414 additions and 0 deletions
|
@ -1212,6 +1212,7 @@ public abstract class RasterPrinterJob extends PrinterJob {
|
|||
pageRangesAttr = (PageRanges)attributes.get(PageRanges.class);
|
||||
if (!isSupportedValue(pageRangesAttr, attributes)) {
|
||||
pageRangesAttr = null;
|
||||
setPageRange(-1, -1);
|
||||
} else {
|
||||
if ((SunPageSelection)attributes.get(SunPageSelection.class)
|
||||
== SunPageSelection.RANGE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue