aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index bc7c3444..a2962309 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1573,7 +1573,7 @@ void Textblock::addSpace (core::style::Style *style)
int wordIndex = words->size () - 1;
if (wordIndex >= 0) {
fillSpace (words->getRef(wordIndex), style);
- accumulateWordData (wordIndex);
+ accumulateWordData (wordIndex, lines->size ());
}
}
@@ -1622,7 +1622,7 @@ void Textblock::addHyphen ()
// TODO Optimize? Like spaces?
word->hyphenWidth = layout->textWidth (word->style->font, "\xc2\xad", 2);
- accumulateWordData (wordIndex);
+ accumulateWordData (wordIndex, lines->size ());
}
}