summaryrefslogtreecommitdiff
path: root/src/ghost/ijsgutenprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ghost/ijsgutenprint.c')
-rw-r--r--src/ghost/ijsgutenprint.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/ghost/ijsgutenprint.c b/src/ghost/ijsgutenprint.c
index 04b1111..06efa2a 100644
--- a/src/ghost/ijsgutenprint.c
+++ b/src/ghost/ijsgutenprint.c
@@ -1,5 +1,5 @@
/*
- * $Id: ijsgutenprint.c,v 1.9 2005/07/30 02:13:46 rlk Exp $
+ * $Id: ijsgutenprint.c,v 1.10 2005/08/10 11:29:46 rlk Exp $
*
* IJS server for Gutenprint.
*
@@ -760,9 +760,16 @@ gutenprint_set_cb (void *set_cb_data, IjsServerCtx *ctx, IjsJobId jobid,
fprintf(stderr, _("ERROR: ijsgutenprint: cannot parse %s dimension %s\n"), xkey, vbuf);
break;
case STP_PARAMETER_TYPE_BOOLEAN:
- code = get_int(vbuf, xkey, &i);
- if (code == 0)
- stp_set_boolean_parameter(img->v, xkey, i);
+ if (strcmp(vbuf, "False") == 0 ||
+ strcmp(vbuf, "false") == 0 ||
+ strcmp(vbuf, "FALSE") == 0 ||
+ strcmp(vbuf, "0") == 0)
+ stp_set_boolean_parameter(img->v, xkey, 0);
+ else if (strcmp(vbuf, "True") == 0 ||
+ strcmp(vbuf, "true") == 0 ||
+ strcmp(vbuf, "TRUE") == 0 ||
+ strcmp(vbuf, "0") == 0)
+ stp_set_boolean_parameter(img->v, xkey, 1);
else
fprintf(stderr, _("ERROR: ijsgutenprint: cannot parse %s boolean %s\n"), xkey, vbuf);
break;