2020-05-19 08:42:33 +00:00
|
|
|
diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c
|
2020-11-02 12:13:09 +00:00
|
|
|
index 167e1df..6c05735 100644
|
2020-05-19 08:42:33 +00:00
|
|
|
--- a/cups/ppd-cache.c
|
|
|
|
+++ b/cups/ppd-cache.c
|
2020-11-02 12:13:09 +00:00
|
|
|
@@ -3790,6 +3790,11 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */
|
|
|
|
PRINTF_COLOROPTION("RGB", _("Color"), CUPS_CSPACE_SRGB, 8)
|
2020-05-19 08:42:33 +00:00
|
|
|
|
2020-11-02 12:13:09 +00:00
|
|
|
default_color = "RGB";
|
|
|
|
+
|
|
|
|
+ // Apparently some printers only advertise color support, so make sure
|
|
|
|
+ // we also do grayscale for these printers...
|
|
|
|
+ if (!ippContainsString(attr, "sgray_8") && !ippContainsString(attr, "black_1") && !ippContainsString(attr, "black_8"))
|
|
|
|
+ PRINTF_COLOROPTION("Gray", _("GrayScale"), CUPS_CSPACE_SW, 8)
|
|
|
|
}
|
|
|
|
else if (!strcasecmp(keyword, "adobe-rgb_16") || !strcmp(keyword, "ADOBERGB48") || !strcmp(keyword, "ADOBERGB24-48"))
|
|
|
|
{
|