From f1c7e2d912449c4c6aaf385aa25dd30788000433 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Fri, 13 Jun 2014 14:25:09 +0200 Subject: EHTMLEditorSelection - Return the format of list that we determined for ordered list --- e-util/e-html-editor-selection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c index 85da12599d..ddd0b6d386 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; -- cgit v1.2.3