summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2012-03-23 13:37:25 +0100
committerTill Kamppeter <till.kamppeter@gmail.com>2012-03-23 13:37:25 +0100
commitc618c723c3fec49ed2a34631727ea40c5334dcf1 (patch)
tree37b5ad980a190a131a465142056f67503e092774 /options.c
parent6c19572dc706a05f45ba200b12d3b4bfdafe2206 (diff)
Imported Upstream version 4.0.15upstream/4.0.15
Diffstat (limited to 'options.c')
-rw-r--r--options.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/options.c b/options.c
index 662cedd..d14c287 100644
--- a/options.c
+++ b/options.c
@@ -1901,12 +1901,16 @@ int ppd_supports_pdf()
{
choice_t *choice;
- if (!option_is_ps_command(opt))
- continue;
+ if (!option_is_ps_command(opt) || option_is_composite(opt) ||
+ (opt->type == TYPE_NONE))
+ continue;
for (choice = opt->choicelist; choice; choice = choice->next)
- if (contains_active_postscript(choice->command))
- return 0;
+ if (contains_active_postscript(choice->command)) {
+ _log(" PostScript option found: %s=%s: \"%s\"\n",
+ opt->name, choice->value, choice->command);
+ return 0;
+ }
}
if (!isempty(cmd_pdf))
@@ -1920,6 +1924,7 @@ int ppd_supports_pdf()
return 1;
}
+ _log(" Neither PDF renderer command line nor Ghostscript-based renderer command line found\n");
return 0;
}