summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/textblock_linebreaking.cc3
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