From 7063846614a44cfb81a3590fa84328039ad307f8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 18 Jul 2014 09:30:27 +0100 Subject: Restrict 'drill down' to specific box types. --- render/box_construct.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/box_construct.c b/render/box_construct.c index 3404ca460..8eeb7bc33 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -513,8 +513,16 @@ static bool box_construct_marker(struct box *box, const char *title, while (last_inner != NULL) { if (last_inner->list_marker != NULL) break; - - last_inner = last_inner->last; + if (last_inner->type == + BOX_INLINE_CONTAINER || + last_inner->type == + BOX_FLOAT_LEFT || + last_inner->type == + BOX_FLOAT_RIGHT) { + last_inner = last_inner->last; + } else { + last_inner = NULL; + } } if (last_inner != NULL) { last = last_inner; -- cgit v1.2.3