[evolution/wip/webkit2] Bug 751194 - Bulleted lists indentation jumps levels



commit ea265aa85384609217965a4fb0d2d8d5fc3b96f6
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 26 08:37:51 2016 +0100

    Bug 751194 - Bulleted lists indentation jumps levels

 .../e-html-editor-selection-dom-functions.c        |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c 
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index 7cec397..8f2efdf 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -646,7 +646,7 @@ merge_lists_if_possible (WebKitDOMNode *list)
                merge_list_into_list (next_sibling, list, FALSE);
 }
 
-static void
+static gboolean
 indent_list (WebKitDOMDocument *document,
              EHTMLEditorWebExtension *extension)
 {
@@ -693,6 +693,8 @@ indent_list (WebKitDOMDocument *document,
 
                merge_lists_if_possible (WEBKIT_DOM_NODE (list));
        }
+
+       return after_selection_end;
 }
 
 static void
@@ -999,7 +1001,7 @@ dom_selection_indent (WebKitDOMDocument *document,
 
                length = webkit_dom_node_list_get_length (list);
                if (length == 0 && node_is_list_or_item (block)) {
-                       indent_list (document, extension);
+                       after_selection_end = indent_list (document, extension);
                        goto next;
                }
 


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