diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/box_construct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index 961fc7f17..a07869d8f 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -337,7 +337,7 @@ bool box_construct_element(xmlNode *n, struct content *content, if (box->type == BOX_INLINE || box->type == BOX_BR) { /* inline box: add to tree and recurse */ box_add_child(*inline_container, box); - if (convert_children) { + if (convert_children && n->children) { for (c = n->children; c; c = c->next) if (!convert_xml_to_box(c, content, style, parent, inline_container, |