[evolution/wip/webkit-composer: 933/966] Bug 726660: [webkit-composer] Paragraph style change causes lose of spell errors



commit 91b434434df2095e495ac8df036f1fa031fa4eb2
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Mar 25 16:09:58 2014 +0100

    Bug 726660: [webkit-composer] Paragraph style change causes lose of spell errors

 e-util/e-editor-selection.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-editor-selection.c b/e-util/e-editor-selection.c
index 87ed89d..4edfdf0 100644
--- a/e-util/e-editor-selection.c
+++ b/e-util/e-editor-selection.c
@@ -1786,13 +1786,18 @@ e_editor_selection_set_block_format (EEditorSelection *selection,
                } else {
                        e_editor_selection_save (selection);
                        e_editor_widget_exec_command (editor_widget, command, value);
+                       e_editor_widget_force_spell_check_for_current_paragraph (editor_widget);
                        e_editor_selection_restore (selection);
                }
        } else {
                if (!has_selection)
                        insert_new_list (selection, document, format, html_mode);
-               else
+               else {
+                       e_editor_selection_save (selection);
                        e_editor_widget_exec_command (editor_widget, command, value);
+                       e_editor_widget_force_spell_check_for_current_paragraph (editor_widget);
+                       e_editor_selection_restore (selection);
+               }
        }
 
        if (block) {


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