From 3385c5c2a65db942df26d73971621a0c48f62f50 Mon Sep 17 00:00:00 2001 From: Dave Barker Date: Fri, 12 May 2023 10:39:52 +0100 Subject: [PATCH] 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. --- scheduler/printers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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... -- 2.47.2