aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-01-22 20:02:25 +0100
committerSebastian Geerken <devnull@localhost>2013-01-22 20:02:25 +0100
commit13948fd797d0148bf8ded2fba929c8a22bdd8615 (patch)
tree0741465512afb8da7d65383831ad1c1753d0decc
parentff6ac1a7aed80bb4646e0e33114542ff0c179c23 (diff)
Fixed bug in Textblock::addBreakOption().
-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)