From 7a23f220c4d275a723090e685aa1bff2a8809102 Mon Sep 17 00:00:00 2001 From: Vzor- Date: Tue, 16 Apr 2024 13:59:30 -0400 Subject: [PATCH] replaced chromaticity check again --- src/qz/printer/action/PrintHTML.java | 1 + src/qz/printer/action/PrintPixel.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qz/printer/action/PrintHTML.java b/src/qz/printer/action/PrintHTML.java index 0c2b2248e..fafa6d3e2 100644 --- a/src/qz/printer/action/PrintHTML.java +++ b/src/qz/printer/action/PrintHTML.java @@ -191,6 +191,7 @@ public void print(PrintOutput output, PrintOptions options) throws PrinterExcept settings.setJobName(pxlOpts.getJobName(Constants.HTML_PRINT)); settings.setPrintQuality(PrintQuality.HIGH); + // If colortype is default, leave printColor blank. The system's printer settings will be used instead. if (pxlOpts.getColorType() != PrintOptions.ColorType.DEFAULT) { settings.setPrintColor(getColor(pxlOpts)); } diff --git a/src/qz/printer/action/PrintPixel.java b/src/qz/printer/action/PrintPixel.java index c0e12970d..fecefbcd9 100644 --- a/src/qz/printer/action/PrintPixel.java +++ b/src/qz/printer/action/PrintPixel.java @@ -37,7 +37,8 @@ protected PrintRequestAttributeSet applyDefaultSettings(PrintOptions.Pixel pxlOp PrintRequestAttributeSet attributes = new HashPrintRequestAttributeSet(); //apply general attributes - if (pxlOpts.getColorType().getAsChromaticity() != null) { + // If colortype is default, leave printColor blank. The system's printer settings will be used instead. + if (pxlOpts.getColorType() != PrintOptions.ColorType.DEFAULT) { attributes.add(pxlOpts.getColorType().getAsChromaticity()); } attributes.add(pxlOpts.getDuplex());