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