[evolution] Redoing a font style change will not set the correct values to the EEditorPage



commit 7d6ed77868d354685015f10250799b3c883710ee
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Aug 23 10:02:26 2016 +0200

    Redoing a font style change will not set the correct values to the EEditorPage

 .../web-extension/e-editor-undo-redo-manager.c     |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c 
b/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
index 66b8d80..c28bab7 100644
--- a/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
+++ b/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
@@ -1017,7 +1017,7 @@ undo_redo_style_change (EEditorPage *editor_page,
                        func = (SelectionStyleChangeFunc) e_editor_dom_selection_set_alignment;
                        break;
                case HISTORY_BOLD:
-                       func = e_editor_dom_selection_set_bold;
+                       func = e_editor_page_set_bold;
                        break;
                case HISTORY_BLOCK_FORMAT:
                        func = (SelectionStyleChangeFunc) e_editor_dom_selection_set_block_format;
@@ -1026,16 +1026,16 @@ undo_redo_style_change (EEditorPage *editor_page,
                        func = (SelectionStyleChangeFunc) e_editor_dom_selection_set_font_size;
                        break;
                case HISTORY_ITALIC:
-                       func = e_editor_dom_selection_set_italic;
+                       func = e_editor_page_set_italic;
                        break;
                case HISTORY_MONOSPACE:
-                       func = e_editor_dom_selection_set_monospace;
+                       func = e_editor_page_set_monospace;
                        break;
                case HISTORY_STRIKETHROUGH:
-                       func = e_editor_dom_selection_set_strikethrough;
+                       func = e_editor_page_set_strikethrough;
                        break;
                case HISTORY_UNDERLINE:
-                       func = e_editor_dom_selection_set_underline;
+                       func = e_editor_page_set_underline;
                        break;
                default:
                        return;


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