openbsd-ports/www/chromium/patches/patch-printing_backend_cups_helper_cc

16 lines
688 B
Plaintext
Raw Normal View History

$OpenBSD: patch-printing_backend_cups_helper_cc,v 1.2 2013/04/03 08:19:10 robert Exp $
--- printing/backend/cups_helper.cc.orig.port Fri Mar 22 02:13:05 2013
+++ printing/backend/cups_helper.cc Tue Apr 2 21:05:17 2013
@@ -282,10 +282,7 @@ bool GetColorModelSettings(ppd_file_t* ppd,
2012-11-07 01:59:45 -05:00
int* cm_black,
int* cm_color,
bool* is_color) {
- bool is_color_device = false;
- ppd_attr_t* attr = ppdFindAttr(ppd, kColorDevice, NULL);
- if (attr && attr->value)
- is_color_device = ppd->color_device;
+ bool is_color_device = ppd->color_device;
*is_color = is_color_device;
return (is_color_device &&