Skip to content

Commit 1557119

Browse files
committed
libcupsfilters: Small fixes on previous commit.
1 parent 99d1cc6 commit 1557119

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cupsfilters/ppdgenerator.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2650,7 +2650,7 @@ cfCreatePPDFromIPP2(char *buffer, /* I - Filename buffer */
26502650
cupsFilePrintf(fp, "*ColorModel RGB/%s: \"\"\n",
26512651
(human_readable2 ? human_readable2 : "Color"));
26522652

2653-
if (!default_color)
2653+
if (!defattr)
26542654
default_color = "RGB";
26552655

26562656
/* Apparently some printers only advertise color support, so make sure
@@ -2669,7 +2669,7 @@ cfCreatePPDFromIPP2(char *buffer, /* I - Filename buffer */
26692669
}
26702670
}
26712671

2672-
if (default_pagesize != NULL) {
2672+
if (default_pagesize != NULL && (!default_color || !defattr)) {
26732673
/* Here we are dealing with a cluster, if the default cluster color
26742674
is not supplied we set it Gray*/
26752675
if (default_cluster_color != NULL) {

0 commit comments

Comments
 (0)