[evolution] I#307 - [Composer] Style lost after spellcheck correction



commit 72eacce096c267c9333a3a49045c31b533b76316
Author: Milan Crha <mcrha redhat com>
Date:   Fri Feb 8 13:44:25 2019 +0100

    I#307 - [Composer] Style lost after spellcheck correction
    
    Closes https://gitlab.gnome.org/GNOME/evolution/issues/307

 src/e-util/e-html-editor-spell-check-dialog.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/e-util/e-html-editor-spell-check-dialog.c b/src/e-util/e-html-editor-spell-check-dialog.c
index 62cd37aa24..3d815ce774 100644
--- a/src/e-util/e-html-editor-spell-check-dialog.c
+++ b/src/e-util/e-html-editor-spell-check-dialog.c
@@ -204,10 +204,7 @@ html_editor_spell_check_dialog_replace (EHTMLEditorSpellCheckDialog *dialog)
                return;
        gtk_tree_model_get (model, &iter, 0, &replacement, -1);
 
-       e_content_editor_insert_content (
-               cnt_editor,
-               replacement,
-               E_CONTENT_EDITOR_INSERT_TEXT_PLAIN);
+       e_content_editor_replace (cnt_editor, replacement);
 
        g_free (replacement);
 
@@ -240,6 +237,8 @@ html_editor_spell_check_dialog_replace_all (EHTMLEditorSpellCheckDialog *dialog)
                dialog->priv->word,
                replacement);
 
+       g_free (replacement);
+
        g_idle_add (html_editor_spell_check_dialog_next_idle_cb, g_object_ref (dialog));
 }
 


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