diff options
-rw-r--r-- | dw/textblock.cc | 2 | ||||
-rw-r--r-- | dw/textblock_linebreaking.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index d42be1e3..993e61f3 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -2536,7 +2536,7 @@ void Textblock::fillSpace (int wordNo, core::style::Style *style) setBreakOption (word, style, 0, 0, false); word->content.space = true; - word->effSpace = word->origSpace = + word->origSpace = word->effSpace = style->font->spaceWidth + style->wordSpacing; removeSpaceImgRenderer (wordNo); diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index 62433753..38d325bc 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -1706,7 +1706,7 @@ void Textblock::alignLine (int lineIndex) this->lineBreakWidth - (line->leftOffset + line->rightOffset); for (int i = line->firstWord; i < line->lastWord; i++) - words->getRef(i)->origSpace = words->getRef(i)->effSpace; + words->getRef(i)->effSpace = words->getRef(i)->origSpace; if (firstWord->content.type != core::Content::BREAK) { switch (firstWord->style->textAlign) { |