summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/form.c1
-rw-r--r--render/form.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/render/form.c b/render/form.c
index 8f18d44ae..c542efd3e 100644
--- a/render/form.c
+++ b/render/form.c
@@ -31,6 +31,7 @@ void form_add_control(struct form *form, struct form_control *control)
if (form->controls) {
assert(form->last_control);
form->last_control->next = control;
+ control->prev = form->last_control;
control->next = 0;
form->last_control = control;
} else {
diff --git a/render/form.h b/render/form.h
index 0063df790..b064e9750 100644
--- a/render/form.h
+++ b/render/form.h
@@ -67,6 +67,7 @@ struct form_control {
int selected;
} radio;
} data;
+ struct form_control *prev; /**< Previous control in this form */
struct form_control *next; /**< Next control in this form. */
};