summaryrefslogtreecommitdiff
path: root/dw/textblock_linebreaking.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-10-01 17:44:14 +0200
committerSebastian Geerken <devnull@localhost>2014-10-01 17:44:14 +0200
commitdaad3172b2330af8119389279140df465f3187cf (patch)
tree4148c454c7e21f03613c3c942bb888279e91da07 /dw/textblock_linebreaking.cc
parentfa743792bb7fb7e01346de1850c448b7b03a41d9 (diff)
parent425137d1f67a3cdf102823bd06f994ecabf6a562 (diff)
Merge with main repo.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r--dw/textblock_linebreaking.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc
index af8fd33d..8a7f1c9c 100644
--- a/dw/textblock_linebreaking.cc
+++ b/dw/textblock_linebreaking.cc
@@ -442,6 +442,10 @@ 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);
+
for(int i = line->firstWord; i <= line->lastWord; i++)
accumulateWordForLine (lineIndex, i);
@@ -451,16 +455,12 @@ Textblock::Line *Textblock::addLine (int firstWord, int lastWord,
// minHeight > 0).
line->boxAscent = misc::max (line->boxAscent, minHeight);
- DBG_OBJ_MSGF ("construct.line", 1, "top = %d\n", line->top);
- DBG_OBJ_MSGF ("construct.line", 1, "boxAscent = %d\n", line->boxAscent);
- DBG_OBJ_MSGF ("construct.line", 1, "boxDescent = %d\n", line->boxDescent);
- DBG_OBJ_MSGF ("construct.line", 1, "contentAscent = %d\n",
- line->contentAscent);
- DBG_OBJ_MSGF ("construct.line", 1, "contentDescent = %d\n",
- line->contentDescent);
- DBG_OBJ_MSGF ("construct.line", 1, "maxLineWidth = %d (lineWidth = %d)\n",
- line->maxLineWidth, lineWidth);
- DBG_OBJ_MSGF ("construct.line", 1, "textOffset = %d\n", line->textOffset);
+ DBG_OBJ_ARRATTRSET_NUM ("lines", lineIndex, "boxAscent", line->boxAscent);
+ DBG_OBJ_ARRATTRSET_NUM ("lines", lineIndex, "boxDescent", line->boxDescent);
+ DBG_OBJ_ARRATTRSET_NUM ("lines", lineIndex, "contentAscent",
+ line->contentAscent);
+ DBG_OBJ_ARRATTRSET_NUM ("lines", lineIndex, "contentDescent",
+ line->contentDescent);
mustQueueResize = true;