[evolution/wip/webkit-composer] EEditorWidget: Fix wrong logic that caused removal of composer content after caret



commit 3c7dc7af1cd3be55b5c2f58aa054778a882273d6
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 21 18:34:12 2014 +0100

    EEditorWidget: Fix wrong logic that caused removal of composer content after caret

 e-util/e-editor-widget.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index aa7d57c..6d94928 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -1427,9 +1427,9 @@ adjust_html_structure_after_ending_list (EEditorSelection *selection,
         * and BR elements and append new paragraph with caret inside it after
         * the paragraph that includes the previously inserted list. */
        prev_sibling = webkit_dom_node_get_previous_sibling (node);
-       if (WEBKIT_DOM_IS_HTMLLI_ELEMENT (prev_sibling) ||
+       if (!(WEBKIT_DOM_IS_HTMLLI_ELEMENT (prev_sibling) ||
            WEBKIT_DOM_IS_HTMLO_LIST_ELEMENT (prev_sibling) ||
-           WEBKIT_DOM_IS_HTMLU_LIST_ELEMENT (prev_sibling))
+           WEBKIT_DOM_IS_HTMLU_LIST_ELEMENT (prev_sibling)))
                return;
 
        if (!(WEBKIT_DOM_IS_HTML_DIV_ELEMENT (node) &&


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