fixed issue with selecting text and word wrapping

This commit is contained in:
fourtf 2018-04-10 03:17:44 +02:00
parent 93f9996207
commit 7093a95e29

View file

@ -203,8 +203,8 @@ void TextElement::addToContainer(MessageLayoutContainer &container, MessageEleme
width += charWidth;
}
container.addElement(getTextLayoutElement(text.mid(wordStart), word.width - lastWidth,
this->hasTrailingSpace()));
container.addElement(
getTextLayoutElement(text.mid(wordStart), width, this->hasTrailingSpace()));
container.breakLine();
}
}