From 62e551f34d92a4713f7f384615ba0d0c8abf8a55 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 29 Oct 2011 12:03:54 +0000 Subject: Give INLINE_END boxes their own id reference. svn path=/trunk/netsurf/; revision=13094 --- render/box_construct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/box_construct.c') diff --git a/render/box_construct.c b/render/box_construct.c index fd48eda8f..845490451 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -821,7 +821,8 @@ void box_construct_element_after(xmlNode *n, html_content *content) inline_end = box_create(NULL, box->style, false, box->href, box->target, box->title, - box->id, content); + box->id == NULL ? NULL : + lwc_string_ref(box->id), content); if (inline_end != NULL) { inline_end->type = BOX_INLINE_END; -- cgit v1.2.3