From: Dave Barker Date: Fri, 12 May 2023 09:39:52 +0000 (+0100) Subject: Fix check for existing color mode setting X-Git-Tag: v2.4.3~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3385c5c2a65db942df26d73971621a0c48f62f50;p=thirdparty%2Fcups.git Fix check for existing color mode setting Colour mode selection is not persisted correctly across restarts. Current check is for "printer-color-mode", but every other reference to this option is "print-color-mode" (no "er"). This was causing the selected colour mode to be reset to the PPD default on restart. --- diff --git a/scheduler/printers.c b/scheduler/printers.c index 347fa19c91..436d826317 100644 --- a/scheduler/printers.c +++ b/scheduler/printers.c @@ -4570,7 +4570,7 @@ load_ppd(cupsd_printer_t *p) /* I - Printer */ urf[num_urf ++] = "SRGB24"; - if (!cupsGetOption("printer-color-mode", p->num_options, p->options)) + if (!cupsGetOption("print-color-mode", p->num_options, p->options)) { // If the default color mode isn't set, use the default from the PPD // file...