[evolution/gnome-3-20] EHTMLEditorSelection - List alignment not detected properly



commit 1ed7b9118d6d32f59a39d750c2a33c18c3906491
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Jun 27 10:35:29 2016 +0200

    EHTMLEditorSelection - List alignment not detected properly

 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 fdbeabf..9733ca3 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -1270,7 +1270,7 @@ e_html_editor_selection_get_alignment (EHTMLEditorSelection *selection)
        if (WEBKIT_DOM_IS_ELEMENT (node))
                element = WEBKIT_DOM_ELEMENT (node);
        else
-               element = webkit_dom_node_get_parent_element (node);
+               element = WEBKIT_DOM_ELEMENT (e_html_editor_get_parent_block_node_from_child (node));
 
        if (element_has_class (element, "-x-evo-align-right")) {
                alignment = E_HTML_EDITOR_SELECTION_ALIGNMENT_RIGHT;


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