diff options
author | Sebastian Geerken <devnull@localhost> | 2014-04-30 17:15:08 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-04-30 17:15:08 +0200 |
commit | 8afd0e5a02887e72fb2c947c074fb499658af95f (patch) | |
tree | 1f1729b1b055d2fc199e59162b8d89c436b331b1 | |
parent | 2dfbb50f1dd4062531eaba7611822599e37bb441 (diff) |
Fixed OOF reference.
-rw-r--r-- | dw/textblock_linebreaking.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index 183c7e95..ab99329a 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -1893,7 +1893,7 @@ void Textblock::calcBorders (int lastOofRef, int height) int firstWordOfLine = lines->size() > 0 ? lines->getLastRef()->lastWord + 1 : 0; - int effOofRef = misc::max (lastOofRef, firstWordOfLine); + int effOofRef = misc::max (lastOofRef, firstWordOfLine - 1); int y = yOffsetOfPossiblyMissingLine (lines->size ()); @@ -1911,7 +1911,8 @@ void Textblock::calcBorders (int lastOofRef, int height) effOofRef); DBG_OBJ_MSGF ("construct.line", 1, - "%d (%s) / %d (%s), at %d (%d), until %d = max (%d, %d)\n", + "%d (%s) / %d (%s), at %d (%d), until %d = " + "max (%d, %d - 1)", newLineLeftBorder, newLineHasFloatLeft ? "true" : "false", newLineRightBorder, newLineHasFloatRight ? "true" : "false", y, height, effOofRef, lastOofRef, firstWordOfLine); |