summaryrefslogtreecommitdiff
path: root/render/box_construct.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-10-29 12:03:54 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-10-29 12:03:54 +0000
commit62e551f34d92a4713f7f384615ba0d0c8abf8a55 (patch)
tree6856b0cc9b0ea1d1a4bd7f9a3678e62ad9003254 /render/box_construct.c
parentab45ecd228d19e0ce6bc17a94a09ea51ef53efe3 (diff)
downloadnetsurf-62e551f34d92a4713f7f384615ba0d0c8abf8a55.tar.gz
netsurf-62e551f34d92a4713f7f384615ba0d0c8abf8a55.tar.bz2
Give INLINE_END boxes their own id reference.
svn path=/trunk/netsurf/; revision=13094
Diffstat (limited to 'render/box_construct.c')
-rw-r--r--render/box_construct.c3
1 files changed, 2 insertions, 1 deletions
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;