diff --git a/src/chatlog/content/text.cpp b/src/chatlog/content/text.cpp index 038676ef0..ffa8d837f 100644 --- a/src/chatlog/content/text.cpp +++ b/src/chatlog/content/text.cpp @@ -102,9 +102,7 @@ void Text::selectionMouseMove(QPointF scenePos) } else { - text = itr.fragment().text(); - - for(QChar c : text) + for(QChar c : itr.fragment().text()) { if(pos >= cursor.selectionStart() && pos < cursor.selectionEnd()) selectedText += c;