summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 5109b8c6a..08f6ee260 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -694,7 +694,7 @@ void layout_block_find_dimensions(int available_width, struct box *box)
/* block-level replaced element, see 10.3.4 and 10.6.2 */
if (width == AUTO && height == AUTO) {
width = box->object->width;
- width = box->object->width;
+ height = box->object->height;
} else if (width == AUTO) {
if (box->object->height)
width = box->object->width *