aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock_linebreaking.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-05-03 13:18:03 +0200
committerSebastian Geerken <devnull@localhost>2014-05-03 13:18:03 +0200
commitd61c9a5d57660d942e416469f8c124aeeeda8152 (patch)
tree55d7e43868aa01e82036cbdc328bb1dff064e85d /dw/textblock_linebreaking.cc
parent7784a832a24eef083efeaaaea5e58c9ec57ba990 (diff)
'text-indent' is now regarded properly in extremes calculation.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r--dw/textblock_linebreaking.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc
index ab99329a..449f05d7 100644
--- a/dw/textblock_linebreaking.cc
+++ b/dw/textblock_linebreaking.cc
@@ -1177,6 +1177,8 @@ void Textblock::handleWordExtremes (int wordIndex)
"<b>handleWordExtremes</b> (%d)", wordIndex);
DBG_OBJ_MSG_START ();
+ initLine1Offset (wordIndex);
+
Word *word = words->getRef (wordIndex);
DBG_MSG_WORD ("construct.paragraph", 1,
"<i>handled word:</i> ", wordIndex, "");
@@ -1187,8 +1189,8 @@ void Textblock::handleWordExtremes (int wordIndex)
wordExtremes.minWidth, wordExtremes.maxWidth);
if (wordIndex == 0) {
- wordExtremes.minWidth += line1Offset;
- wordExtremes.maxWidth += line1Offset;
+ wordExtremes.minWidth += line1OffsetEff;
+ wordExtremes.maxWidth += line1OffsetEff;
}
if (paragraphs->size() == 0 ||