]> git.ipfire.org Git - thirdparty/cups.git/commit
In auto-generated PPDs do not set RGB default on mono printers
authorTill Kamppeter <till.kamppeter@gmail.com>
Wed, 15 Feb 2023 21:01:05 +0000 (22:01 +0100)
committerTill Kamppeter <till.kamppeter@gmail.com>
Wed, 15 Feb 2023 21:01:05 +0000 (22:01 +0100)
commitebf3bb82593e5f49093ed7b9e52452333240d225
treedd711398e2645a50fc90b496865e5dc8b4563f3d
parent6885402a639a33d4da9ee814c691b01a46b887f5
In auto-generated PPDs do not set RGB default on mono printers

When a PPD for a driverless printer is generated by the
_ppdCreateFromIPP2() function and the get-printer-attributes IPP
response gives "print-color-mode-default=auto" the PPD's default
setting for "ColorModel" is always "RGB", even on monochrome printers,
which makes printing fail on most devices.

Now we ignore the "print-color-mode-default" if set to "auto" and
proceed as if no default was given, finding the default by selecting
the most desirable of the existing "ColorModel" choices.
cups/ppd-cache.c