Tim Waugh 4b6d47
diff -up foomatic-filters-4.0.3/options.c.int-options foomatic-filters-4.0.3/options.c
Tim Waugh 4b6d47
--- foomatic-filters-4.0.3/options.c.int-options	2009-08-19 19:08:41.000000000 +0100
Tim Waugh 4b6d47
+++ foomatic-filters-4.0.3/options.c	2010-01-19 16:43:09.343981005 +0000
Tim Waugh 4b6d47
@@ -863,7 +863,8 @@ int option_get_command(dstr_t *cmd, opti
Tim Waugh 4b6d47
 
Tim Waugh 4b6d47
     /* If the value is set to a predefined choice */
Tim Waugh 4b6d47
     choice = option_find_choice(opt, valstr);
Tim Waugh 4b6d47
-    if (choice) {
Tim Waugh 4b6d47
+    if (choice && (*choice->command ||
Tim Waugh 4b6d47
+		   ((opt->type != TYPE_INT) && (opt->type != TYPE_FLOAT)))) {
Tim Waugh 4b6d47
         dstrcpy(cmd, choice->command);
Tim Waugh 4b6d47
         return 1;
Tim Waugh 4b6d47
     }