[evolution] ETMLEditorSelection - Font color in picker is not changed when moving between different font colors



commit 20f8ae5e0679d45850a3264324a1bb6cc827bf58
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Mar 6 08:38:55 2015 +0100

    ETMLEditorSelection - Font color in picker is not changed when moving between different font colors

 e-util/e-html-editor-selection.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 86cf08d..4e9b649 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -2548,14 +2548,10 @@ e_html_editor_selection_get_font_color (EHTMLEditorSelection *selection,
 
        g_object_unref (view);
 
-       if (e_html_editor_selection_is_collapsed (selection)) {
-               color = g_strdup (selection->priv->font_color);
-       } else {
-               color = get_font_property (selection, "color");
-               if (!(color && *color)) {
-                       *rgba = black;
-                       return;
-               }
+       color = get_font_property (selection, "color");
+       if (!(color && *color)) {
+               *rgba = black;
+               return;
        }
 
        gdk_rgba_parse (rgba, color);


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