]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix check for existing color mode setting 687/head
authorDave Barker <dave@davebarker.xyz>
Fri, 12 May 2023 09:39:52 +0000 (10:39 +0100)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 09:39:52 +0000 (10:39 +0100)
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

index 347fa19c9108b8918557b761ac5e000496beb2df..436d826317f2d994b3dfbbd9344da39d2625dee5 100644 (file)
@@ -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...