diff options
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); } |