From 20be26d3698eeeeaf2c0a9e55a28831466fc0bd1 Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Sat, 31 Jan 2015 17:15:19 +0100 Subject: Relative positions, part 6 (hopefully last): calculating the positions. --- dw/textblock_linebreaking.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'dw/textblock_linebreaking.cc') 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) -- cgit v1.2.3