[evolution] Bug 751225 - Spell check selection changes font settings to initial settings



commit fd741a0f1aa2ece8a744cbe5152384a2846c2d1b
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Jul 3 08:25:29 2015 +0200

    Bug 751225 - Spell check selection changes font settings to initial settings
    
    Instead of inserting the word replacement as an HTML string use the DOM's
    PasteAndmatchStyle function.

 e-util/e-html-editor-selection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 9705a73..97a13b4 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -1020,7 +1020,7 @@ e_html_editor_selection_replace_caret_word (EHTMLEditorSelection *selection,
        g_object_unref (dom_window);
 
        e_html_editor_view_exec_command (
-               view, E_HTML_EDITOR_VIEW_COMMAND_INSERT_HTML, replacement);
+               view, E_HTML_EDITOR_VIEW_COMMAND_PASTE_AND_MATCH_STYLE, replacement);
        e_html_editor_view_force_spell_check_for_current_paragraph (view);
 
        g_object_unref (view);


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