aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 3b876a07..f7774971 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1798,8 +1798,11 @@ void Textblock::addSpace (core::style::Style *style)
void Textblock::addBreakOption (core::style::Style *style)
{
int wordIndex = words->size () - 1;
- if (wordIndex >= 0)
+ if (wordIndex >= 0) {
setBreakOption (words->getRef(wordIndex), style);
+ // Call of accumulateWordData() is not needed here.
+ correctLastWordExtremes ();
+ }
}
void Textblock::fillSpace (Word *word, core::style::Style *style)