From 2c8e7c638d06fb464b0e3985fe46f1a5698836c3 Mon Sep 17 00:00:00 2001 From: krepa098 Date: Mon, 19 Jan 2015 10:08:43 +0100 Subject: [PATCH] nice! --- src/chatlog/content/text.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;