From 7093a95e29509a0593a01f28c241d363c521b41c Mon Sep 17 00:00:00 2001 From: fourtf Date: Tue, 10 Apr 2018 03:17:44 +0200 Subject: [PATCH] fixed issue with selecting text and word wrapping --- src/messages/messageelement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }