From 4a500f5614a9f238a144d05388dcb41b76f2c9f7 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 21 May 2004 23:42:26 +0000 Subject: [project @ 2004-05-21 23:42:26 by bursa] Fix and clean code for radio and checkbox inputs. svn path=/import/netsurf/; revision=884 --- render/box.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'render/box.c') diff --git a/render/box.c b/render/box.c index 656b9923f..d763ed8a1 100644 --- a/render/box.c +++ b/render/box.c @@ -1134,10 +1134,7 @@ struct box_result box_input(xmlNode *n, struct box_status *status, gadget->type = GADGET_CHECKBOX; if ((s = (char *) xmlGetProp(n, (const xmlChar *) "checked"))) { - if (gadget->type == GADGET_CHECKBOX) - gadget->data.checkbox.selected = -1; - else - gadget->data.radio.selected = -1; + gadget->selected = true; xmlFree(s); } -- cgit v1.2.3