diff options
author | Sebastian Geerken <devnull@localhost> | 2014-11-17 21:10:04 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-11-17 21:10:04 +0100 |
commit | 1897da6e8181c5dbd8c4e38ab0af72553158e75c (patch) | |
tree | bd75a9519740b1662e55a96ffd3130631f30c59b /dw/textblock_linebreaking.cc | |
parent | f83977c78fb00b0c1d57235e4e9784af822d39ba (diff) |
RTFL messages.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r-- | dw/textblock_linebreaking.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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 |