From: Michael R Sweet Date: Thu, 7 Oct 2021 16:29:10 +0000 (-0400) Subject: Use have_qdraft for draft preset. X-Git-Tag: v2.4b1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8436dedb2c370c07e595b26fe9d246fc6e4b5af0;p=thirdparty%2Fcups.git Use have_qdraft for draft preset. --- diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 9f5ab87c36..c9e3ae8e33 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -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"