diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mail-to-task/mail-to-task.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 3014388e4c..2992fc961f 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -1068,16 +1068,15 @@ get_selected_text (EMailReader *reader) { EMailDisplay *display; gchar *text = NULL; - gint len; display = e_mail_reader_get_mail_display (reader); if (!e_web_view_is_selection_active (E_WEB_VIEW (display))) return NULL; - text = e_mail_display_get_selection_plain_text (display, &len); + text = e_mail_display_get_selection_plain_text (display); - if (text == NULL || !text_contains_nonwhitespace (text, len)) { + if (text == NULL || !text_contains_nonwhitespace (text, strlen (text))) { g_free (text); return NULL; } |