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



commit e144e939012f95a84dbafac9f87205de1c3bdfef
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Mar 24 16:39:51 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-html-editor-selection-dom-functions.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/e-html-editor-selection-dom-functions.c 
b/web-extensions/e-html-editor-selection-dom-functions.c
index ee4fcbf..fca8c54 100644
--- a/web-extensions/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/e-html-editor-selection-dom-functions.c
@@ -3797,7 +3797,7 @@ dom_selection_get_font_color (WebKitDOMDocument *document,
                color = g_strdup (selection->priv->font_color);*/
        } else {
                color = get_font_property (document, "color");
-               if (!color)
+               if (!(color && *color))
                        color = g_strdup ("#000000");
        }
 


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