summaryrefslogtreecommitdiff
path: root/src/ghost
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2008-10-26 16:12:40 +0000
committerRoger Leigh <rleigh@debian.org>2008-10-26 16:12:40 +0000
commit5074d880144fc4a9e0566e7b204503cbeb6b328a (patch)
treed53fcd5437e938292d7cebf5d39f7c5db3fcb23f /src/ghost
parent77e55a7b8b26c9adb87c0adf38a60eb6956c9af4 (diff)
Imported Upstream version 4.3.99+cvs20050813
Diffstat (limited to 'src/ghost')
-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;