[evolution/wip/webkit2] EHTMLEditorSelection - Font color can't be set



commit 924063aef522083ec8915d7bf3e1088117b93e16
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 2 12:50:21 2016 +0100

    EHTMLEditorSelection - Font color can't be set

 .../e-html-editor-selection-dom-functions.c        |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c 
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index 9e051b0..50fc975 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -4754,12 +4754,11 @@ dom_selection_set_font_color (WebKitDOMDocument *document,
        dom_exec_command (document, extension, E_HTML_EDITOR_VIEW_COMMAND_FORE_COLOR, color);
 
        if (ev) {
-               dom_selection_get_coordinates (
-                       document,
-                       &ev->after.start.x,
-                       &ev->after.start.y,
-                       &ev->after.end.x,
-                       &ev->after.end.y);
+               ev->after.start.x = ev->before.start.x;
+               ev->after.start.y = ev->before.start.y;
+               ev->after.end.x = ev->before.end.x;
+               ev->after.end.y = ev->before.end.y;
+
                e_html_editor_undo_redo_manager_insert_history_event (manager, ev);
        }
 


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