mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8181192: [macos] javafx.print.PrinterJob.showPrintDialog() hangs on macOS
Reviewed-by: prr, serb
This commit is contained in:
parent
8190890ef7
commit
87be0f2e80
3 changed files with 11 additions and 2 deletions
|
@ -886,6 +886,14 @@ public abstract class RasterPrinterJob extends PrinterJob {
|
|||
}
|
||||
}
|
||||
|
||||
protected PageFormat getPageFormatFromAttributes() {
|
||||
if (attributes == null || attributes.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return attributeToPageFormat(getPrintService(), this.attributes);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Presents the user a dialog for changing properties of the
|
||||
* print job interactively.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue