aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-06-13 20:25:09 +0800
committerTomas Popela <tpopela@redhat.com>2014-06-13 20:57:25 +0800
commitf1c7e2d912449c4c6aaf385aa25dd30788000433 (patch)
tree061175d08e6641662d9a2d8a0ce8c1fc7cb1e607
parent93d897d8c1bbe3094ca95a3d840475b14af0a488 (diff)
downloadgsoc2013-evolution-f1c7e2d912449c4c6aaf385aa25dd30788000433.tar
gsoc2013-evolution-f1c7e2d912449c4c6aaf385aa25dd30788000433.tar.gz
gsoc2013-evolution-f1c7e2d912449c4c6aaf385aa25dd30788000433.tar.bz2
gsoc2013-evolution-f1c7e2d912449c4c6aaf385aa25dd30788000433.tar.lz
gsoc2013-evolution-f1c7e2d912449c4c6aaf385aa25dd30788000433.tar.xz
gsoc2013-evolution-f1c7e2d912449c4c6aaf385aa25dd30788000433.tar.zst
gsoc2013-evolution-f1c7e2d912449c4c6aaf385aa25dd30788000433.zip
EHTMLEditorSelection - Return the format of list that we determined for ordered list
-rw-r--r--e-util/e-html-editor-selection.c4
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 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;