diff --git a/src/messages/messageelement.cpp b/src/messages/messageelement.cpp index 46d8cb63e..7334a16af 100644 --- a/src/messages/messageelement.cpp +++ b/src/messages/messageelement.cpp @@ -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(); } }