modules/graphics/src/main/java/com/sun/prism/j2d/print/J2DPrinterJob.java

Print this page

        

*** 68,77 **** --- 68,78 ---- import java.awt.print.Printable; import java.awt.print.PrinterException; import java.util.ArrayList; import java.util.Set; import com.sun.glass.ui.Application; + import com.sun.javafx.PlatformUtil; import com.sun.javafx.print.PrintHelper; import com.sun.javafx.print.PrinterImpl; import com.sun.javafx.print.PrinterJobImpl; import com.sun.javafx.scene.NodeHelper; import com.sun.javafx.sg.prism.NGNode;
*** 101,111 **** --- 102,115 ---- } catch (PrinterException pe) { } printReqAttrSet = new HashPrintRequestAttributeSet(); // dialog selection is a JDK 1.7 attribute. // We expect to run on 1.8 and above so this should be fine. + // Don't use on Linux where it has no effect and runs into a JDK bug + if (!PlatformUtil.isLinux()) { printReqAttrSet.add(DialogTypeSelection.NATIVE); + } j2dPageable = new J2DPageable(); pJob2D.setPageable(j2dPageable); } public boolean showPrintDialog(Window owner) {