Skip to content

Commit

Permalink
Fix copy-paste error in color logic
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Jul 25, 2023
1 parent 139e694 commit 1ee67a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ippprinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ee67a0

Please sign in to comment.