From 1897da6e8181c5dbd8c4e38ab0af72553158e75c Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Mon, 17 Nov 2014 21:10:04 +0100 Subject: RTFL messages. --- dw/textblock_linebreaking.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dw/textblock_linebreaking.cc') diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index 4b181152..f8a46897 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -446,7 +446,6 @@ Textblock::Line *Textblock::addLine (int firstWord, int lastWord, prevLine->lastOofRefPositionedBeforeThisLine; } - DBG_OBJ_ARRATTRSET_NUM ("lines", lineIndex, "top", line->top); DBG_OBJ_ARRATTRSET_NUM ("lines", lineIndex, "maxLineWidth", line->maxLineWidth); @@ -463,6 +462,8 @@ Textblock::Line *Textblock::addLine (int firstWord, int lastWord, + prevLine->totalHeight (line->marginAscent - line->borderAscent); } + DBG_OBJ_ARRATTRSET_NUM ("lines", lineIndex, "top", line->top); + // Especially empty lines (possible when there are floats) have // zero height, which may cause endless loops. For this reasons, // the height should be positive (assuming the caller passed -- cgit v1.2.3