From c618c723c3fec49ed2a34631727ea40c5334dcf1 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Fri, 23 Mar 2012 13:37:25 +0100 Subject: Imported Upstream version 4.0.15 --- options.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'options.c') 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; } -- cgit v1.2.3