[evolution/gnome-3-20] Bug 767236 - quick correction spell check in context menu is gone



commit 4c131440f0e84006f9f317d5846b1a62d3417415
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Jun 8 16:07:12 2016 +0200

    Bug 767236 - quick correction spell check in context menu is gone
    
    Actually this is a regression after commit d83a448, but we can skip the call
    to the e_html_editor_selection_has_text and only operate on the current caret
    word.

 e-util/e-html-editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor.c b/e-util/e-html-editor.c
index caf57e7..4b354ba 100644
--- a/e-util/e-html-editor.c
+++ b/e-util/e-html-editor.c
@@ -445,7 +445,7 @@ html_editor_update_actions (EHTMLEditor *editor,
        checker = WEBKIT_SPELL_CHECKER (webkit_get_text_checker ());
        selection = e_html_editor_view_get_selection (view);
        visible = FALSE;
-       if ((n_languages > 0) && e_html_editor_selection_has_text (selection)) {
+       if (n_languages > 0) {
                gchar *word = e_html_editor_selection_get_caret_word (selection);
                if (word && *word) {
                        webkit_spell_checker_check_spelling_of_string (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]