diff -r 867f988a0818 -r 06b251c98872 pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Sat Aug 11 21:26:43 2007 +0000 +++ b/pidgin/gtkimhtml.c Sat Aug 11 23:41:20 2007 +0000 @@ -1037,7 +1037,7 @@ { char *tmp; - if (text == NULL) + if (text == NULL || !(*text)) return; tmp = g_markup_escape_text(text, -1); @@ -1053,7 +1053,7 @@ if (!gtk_text_view_get_editable(GTK_TEXT_VIEW(imhtml))) return; - if (imhtml->wbfo || selection_data->length < 0) { + if (imhtml->wbfo || selection_data->length <= 0) { gtk_clipboard_request_text(clipboard, paste_plaintext_received_cb, imhtml); return; } else {