[evolution/gnome-3-18] EHTMLEditorSelection - Font color can't be set



commit cb1c08417778498eb62f47e21e1727667c828692
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Oct 2 13:06:39 2015 +0200

    EHTMLEditorSelection - Font color can't be set
    
    We can't do any modification to the DOM after the document.exec call as it would
    discard some internal WebKit stuff and the color would not be applied after user
    input.

 e-util/e-html-editor-selection.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index a2c132b..109ea7a 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -3109,12 +3109,11 @@ e_html_editor_selection_set_font_color (EHTMLEditorSelection *selection,
        g_free (color);
 
        if (ev) {
-               e_html_editor_selection_get_selection_coordinates (
-                       selection,
-                       &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_view_insert_new_history_event (view, ev);
        }
 


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