summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 474474d73..f41e01b3e 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -523,7 +523,7 @@ struct box * layout_line(struct box *first, int width, int *y,
struct box * left;
struct box * right;
struct box * b;
- struct box * c = NULL;
+ struct box * c;
struct box * d;
struct box * fl;
int move_y = 0;
@@ -598,6 +598,7 @@ struct box * layout_line(struct box *first, int width, int *y,
}
}
+ c = first;
/* pass 2: place boxes in line */
for (x = x_previous = 0, b = first; x <= x1 - x0 && b != 0; b = b->next) {
if (b->type == BOX_INLINE || b->type == BOX_INLINE_BLOCK) {