rlescak / rpms / cups

Forked from rpms/cups 2 years ago
Clone
701bef7
diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c
3beb10c
index 167e1df..6c05735 100644
701bef7
--- a/cups/ppd-cache.c
701bef7
+++ b/cups/ppd-cache.c
3beb10c
@@ -3790,6 +3790,11 @@ _ppdCreateFromIPP(char   *buffer,	/* I - Filename buffer */
3beb10c
 	PRINTF_COLOROPTION("RGB", _("Color"), CUPS_CSPACE_SRGB, 8)
701bef7
 
3beb10c
 	default_color = "RGB";
3beb10c
+
3beb10c
+        // Apparently some printers only advertise color support, so make sure
3beb10c
+        // we also do grayscale for these printers...
3beb10c
+	if (!ippContainsString(attr, "sgray_8") && !ippContainsString(attr, "black_1") && !ippContainsString(attr, "black_8"))
3beb10c
+	  PRINTF_COLOROPTION("Gray", _("GrayScale"), CUPS_CSPACE_SW, 8)
3beb10c
       }
3beb10c
       else if (!strcasecmp(keyword, "adobe-rgb_16") || !strcmp(keyword, "ADOBERGB48") || !strcmp(keyword, "ADOBERGB24-48"))
3beb10c
       {