diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2005-04-14 23:17:37 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2005-04-14 23:17:37 +0000 |
commit | ef7fe5d3e51f7e3cb12fafd79952ebf5f7702f14 (patch) | |
tree | af0308b753f742fdb968650cae9df55bd3d0ea73 /render | |
parent | 487cad486dce950f51c60aee81ba792be1ef2f33 (diff) | |
download | netsurf-ef7fe5d3e51f7e3cb12fafd79952ebf5f7702f14.tar.gz netsurf-ef7fe5d3e51f7e3cb12fafd79952ebf5f7702f14.tar.bz2 |
[project @ 2005-04-14 23:17:37 by jmb]
Fix form selection abort
svn path=/import/netsurf/; revision=1633
Diffstat (limited to 'render')
-rw-r--r-- | render/box_construct.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index 6b02ac519..9723b4de1 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -900,11 +900,11 @@ void box_set_table_border(struct box *box, int value, colour color) value; box->style->border[i].width.value.unit = CSS_UNIT_PX; - box->style->border[i].style = + box->style->border[i].style = CSS_BORDER_STYLE_OUTSET; } } - + /* The tree is not normalized yet, so accept cells not in rows and * rows not in row groups. */ for (child = box->children; child; child = child->next) { @@ -922,7 +922,7 @@ void box_set_table_border(struct box *box, int value, colour color) 1; child->style->border[i].width.value.unit = CSS_UNIT_PX; - child->style->border[i].style = + child->style->border[i].style = CSS_BORDER_STYLE_INSET; } break; @@ -1976,12 +1976,14 @@ bool box_select(BOX_SPECIAL_PARAMS) } if (gadget->data.select.num_selected == 0) - inline_box->text = messages_get("Form_None"); + inline_box->text = talloc_strdup(content, + messages_get("Form_None")); else if (gadget->data.select.num_selected == 1) inline_box->text = talloc_strdup(content, gadget->data.select.current->text); else - inline_box->text = messages_get("Form_Many"); + inline_box->text = talloc_strdup(content, + messages_get("Form_Many")); if (!inline_box->text) goto no_memory; |