[evolution] EHTMLEditorSelection - Don't treat links as underlined
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorSelection - Don't treat links as underlined
- Date: Wed, 11 Feb 2015 10:16:35 +0000 (UTC)
commit 60691aef9e9a0769a29347fa19258e95c09f03b1
Author: Tomas Popela <tpopela redhat com>
Date: Wed Feb 11 11:15:46 2015 +0100
EHTMLEditorSelection - Don't treat links as underlined
e-util/e-html-editor-selection.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 4d77ed2..7a1e773 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -4229,6 +4229,9 @@ e_html_editor_selection_is_underline (EHTMLEditorSelection *selection)
else
element = webkit_dom_node_get_parent_element (node);
+ if (WEBKIT_DOM_IS_HTML_ANCHOR_ELEMENT (element))
+ return FALSE;
+
style = webkit_dom_dom_window_get_computed_style (window, element, NULL);
value = webkit_dom_css_style_declaration_get_property_value (style, "text-decoration");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]