[evolution] EHTMLEditorSelection - The font color for selected text is wrong



commit d54ad093157570c0e5a426e9e2c477755a29ec9e
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 20 08:13:18 2015 +0100

    EHTMLEditorSelection - The font color for selected text is wrong
    
    Chack if the returned value is not empty, otherwise set it to black.

 e-util/e-html-editor-selection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index eb3bb0f..45b55e6 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -2541,7 +2541,7 @@ e_html_editor_selection_get_font_color (EHTMLEditorSelection *selection,
                color = g_strdup (selection->priv->font_color);
        } else {
                color = get_font_property (selection, "color");
-               if (!color) {
+               if (!(color && *color)) {
                        *rgba = black;
                        return;
                }


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