[evolution] EHTMLEditorSelection - Use variable that holds if the range is collapsed



commit 33e1edd842c872f1229203487d933e2523bc5b45
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 27 10:44:11 2015 +0100

    EHTMLEditorSelection - Use variable that holds if the range is collapsed

 e-util/e-html-editor-selection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 1bd245a..86cf08d 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -6160,7 +6160,7 @@ e_html_editor_selection_save (EHTMLEditorSelection *selection)
  insert_end_marker:
        end_marker = create_selection_marker (document, FALSE);
 
-       if (webkit_dom_range_get_collapsed (range, NULL)) {
+       if (collapsed) {
                webkit_dom_node_insert_before (
                        webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (start_marker)),
                        WEBKIT_DOM_NODE (end_marker),


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