From 1ee67a045c2b6f22fc689da2081f43430668224d Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Tue, 25 Jul 2023 21:04:59 +0200 Subject: [PATCH] Fix copy-paste error in color logic --- src/ippprinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ippprinter.cpp b/src/ippprinter.cpp index 73a94c3..4967ab6 100644 --- a/src/ippprinter.cpp +++ b/src/ippprinter.cpp @@ -745,7 +745,7 @@ void IppPrinter::print(QJsonObject jobAttrs, QString filename) break; } - bool supportsColor = _attrs["operations-supported"].toObject()["value"].toArray().contains("color"); + bool supportsColor = _attrs["print-color-mode-supported"].toObject()["value"].toArray().contains("color"); QString PrintColorMode = getAttrOrDefault(jobAttrs, "print-color-mode").toString(); Params.colorMode = PrintColorMode.contains("color") ? PrintParameters::sRGB24 : PrintColorMode.contains("monochrome") || !supportsColor ? PrintParameters::Gray8