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



commit d145f35caa5fc8e30baee1497965d5cb73b70775
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 b434683..edeced4 100644
--- a/e-util/e-editor-selection.c
+++ b/e-util/e-editor-selection.c
@@ -1790,13 +1790,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]