mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8296920: Regression Test DialogOrient.java fails on MacOS
Reviewed-by: honkar, dnguyen, achung, jdv
(cherry picked from commit 8c9d21e519)
This commit is contained in:
committed by
Vitaly Provodin
parent
3e0ad99cdf
commit
3ffa1f0667
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@@ -69,8 +69,8 @@ public class DialogOrient implements Printable {
|
||||
Sysout.printInstructions( instructions );
|
||||
|
||||
PrinterJob job = PrinterJob.getPrinterJob();
|
||||
job.setPrintable(new DialogOrient());
|
||||
PageFormat landscape = job.pageDialog(job.defaultPage());
|
||||
job.setPrintable(new DialogOrient(), landscape);
|
||||
|
||||
if (job.printDialog()) {
|
||||
job.print();
|
||||
|
||||
Reference in New Issue
Block a user