diff options
author | James Bursa <james@netsurf-browser.org> | 2006-10-09 21:34:34 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2006-10-09 21:34:34 +0000 |
commit | 7b30364bc3534c817ca792d1efefc4c14e7b5de0 (patch) | |
tree | c1da918aee26ec5bedf2f753eefaacde34fe4854 /render/layout.c | |
parent | a785bc25f7d34a7121739219ccdc063e4ac8ba33 (diff) | |
download | netsurf-7b30364bc3534c817ca792d1efefc4c14e7b5de0.tar.gz netsurf-7b30364bc3534c817ca792d1efefc4c14e7b5de0.tar.bz2 |
Check for null style before using it.
svn path=/trunk/netsurf/; revision=2986
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c index dfd4ab321..02c7c2155 100644 --- a/render/layout.c +++ b/render/layout.c @@ -216,8 +216,9 @@ bool layout_block_context(struct box *block, struct content *content) * correct handling of floats. */ - if (box->style->position == CSS_POSITION_ABSOLUTE || - box->style->position == CSS_POSITION_FIXED) { + if (box->style && + (box->style->position == CSS_POSITION_ABSOLUTE|| + box->style->position == CSS_POSITION_FIXED)) { box->x = box->parent->padding[LEFT]; goto advance_to_next_box; } |