aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-chat-text-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index 9df2e35d9..5b0a35680 100644
--- a/libempathy-gtk/empathy-chat-text-view.c
+++ b/libempathy-gtk/empathy-chat-text-view.c
@@ -1168,8 +1168,6 @@ chat_text_view_copy_clipboard (EmpathyChatView *view)
GList *list;
gboolean ignore_newlines = FALSE;
- str = g_string_new ("");
-
g_return_if_fail (EMPATHY_IS_CHAT_TEXT_VIEW (view));
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
@@ -1178,6 +1176,8 @@ chat_text_view_copy_clipboard (EmpathyChatView *view)
if (!gtk_text_buffer_get_selection_bounds (buffer, &start, &end))
return;
+ str = g_string_new ("");
+
for (iter = start; !gtk_text_iter_equal (&iter, &end); gtk_text_iter_forward_char (&iter)) {
c = gtk_text_iter_get_char (&iter);
if (c == 0xFFFC) {