]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Use have_qdraft for draft preset.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 7 Oct 2021 16:29:10 +0000 (12:29 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 7 Oct 2021 16:29:10 +0000 (12:29 -0400)
cups/ppd-cache.c

index 9f5ab87c36805ecdee9c14fe7065ad440ea5d329..c9e3ae8e334cec8003d96f9bb2cf93fb31ee1e40 100644 (file)
@@ -4187,14 +4187,15 @@ _ppdCreateFromIPP2(
     if (default_color)
     {
       // Standard presets for color mode and quality...
-      cupsFilePuts(fp,
-                   "*APPrinterPreset Gray_with_Paper_Auto-Detect_-_Draft/Draft B&W: \"\n"
-                  "  *cupsPrintQuality Draft *ColorModel Gray\n"
-                  "  com.apple.print.preset.graphicsType General\n"
-                  "  com.apple.print.preset.quality low\n"
-                  "  com.apple.print.preset.media-front-coating autodetect\n"
-                  "  com.apple.print.preset.output-mode monochrome\"\n"
-                  "*End\n");
+      if (have_qdraft)
+       cupsFilePuts(fp,
+                    "*APPrinterPreset Gray_with_Paper_Auto-Detect_-_Draft/Draft B&W: \"\n"
+                    "  *cupsPrintQuality Draft *ColorModel Gray\n"
+                    "  com.apple.print.preset.graphicsType General\n"
+                    "  com.apple.print.preset.quality low\n"
+                    "  com.apple.print.preset.media-front-coating autodetect\n"
+                    "  com.apple.print.preset.output-mode monochrome\"\n"
+                    "*End\n");
       cupsFilePuts(fp,
                    "*APPrinterPreset Gray_with_Paper_Auto-Detect/Black and White: \"\n"
                   "  *cupsPrintQuality Normal *ColorModel Gray\n"