aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock_linebreaking.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-31 17:15:19 +0100
committerSebastian Geerken <devnull@localhost>2015-01-31 17:15:19 +0100
commit20be26d3698eeeeaf2c0a9e55a28831466fc0bd1 (patch)
treedd0388e3b11d9a409809609f1bf946964ebb58f4 /dw/textblock_linebreaking.cc
parenteac1c960c8c875715fdb8d123e4c19302d93eb00 (diff)
Relative positions, part 6 (hopefully last): calculating the positions.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r--dw/textblock_linebreaking.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc
index 6df26081..55577e87 100644
--- a/dw/textblock_linebreaking.cc
+++ b/dw/textblock_linebreaking.cc
@@ -495,15 +495,8 @@ Textblock::Line *Textblock::addLine (int firstWord, int lastWord,
mustQueueResize = true;
- //printWordShort (words->getRef (line->firstWord));
- //printf (" ... ");
- //printWordShort (words->getRef (line->lastWord));
- //printf (": ");
- //words->getRef(line->lastWord)->badnessAndPenalty.print ();
- //printf ("\n");
-
int xWidget = line->textOffset;
- int yLine = lineYOffsetWidget (line);
+ int yLine = yOffsetOfLineCreated (line);
for (int i = firstWord; i <= lastWord; i++) {
Word *word = words->getRef (i);
if (word->wordImgRenderer)