8181192: [macos] javafx.print.PrinterJob.showPrintDialog() hangs on macOS

Reviewed-by: prr, serb
This commit is contained in:
Anton Litvinov 2017-06-02 18:40:55 +03:00
parent 8190890ef7
commit 87be0f2e80
3 changed files with 11 additions and 2 deletions

View file

@ -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.