[evolution] EHTMLEditorSelection - Return the format of list that we determined for ordered list



commit f1c7e2d912449c4c6aaf385aa25dd30788000433
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Jun 13 14:25:09 2014 +0200

    EHTMLEditorSelection - Return the format of list that we determined for ordered list

 e-util/e-html-editor-selection.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 85da125..ddd0b6d 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -1427,7 +1427,7 @@ e_html_editor_selection_get_list_format_from_node (WebKitDOMNode *node)
        if (WEBKIT_DOM_IS_HTMLU_LIST_ELEMENT (node))
                return format;
 
-       if (WEBKIT_DOM_IS_ELEMENT (node)) {
+       if (WEBKIT_DOM_IS_HTMLO_LIST_ELEMENT (node)) {
                gchar *type_value = webkit_dom_element_get_attribute (
                        WEBKIT_DOM_ELEMENT (node), "type");
 
@@ -1441,6 +1441,8 @@ e_html_editor_selection_get_list_format_from_node (WebKitDOMNode *node)
                else if (g_ascii_strcasecmp (type_value, "I") == 0)
                        format = E_HTML_EDITOR_SELECTION_BLOCK_FORMAT_ORDERED_LIST_ROMAN;
                g_free (type_value);
+
+               return format;
        }
 
        return -1;


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