[evolution/wip/webkit2] EHTMLEditorSelection - Ask for a parent node of the right node



commit 1e7acda1d2adc2a869b2e88a1616972e7d80aca2
Author: Tomas Popela <tpopela redhat com>
Date:   Tue May 31 11:12:14 2016 +0200

    EHTMLEditorSelection - Ask for a parent node of the right node
    
    This also avoids the use on an uninitialized variable.

 .../e-html-editor-selection-dom-functions.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/webkit-content-editor/web-extension/e-html-editor-selection-dom-functions.c 
b/modules/webkit-content-editor/web-extension/e-html-editor-selection-dom-functions.c
index 316350d..a14524a 100644
--- a/modules/webkit-content-editor/web-extension/e-html-editor-selection-dom-functions.c
+++ b/modules/webkit-content-editor/web-extension/e-html-editor-selection-dom-functions.c
@@ -2645,7 +2645,7 @@ wrap_lines (WebKitDOMDocument *document,
                                } else if (!prev_nd) {
                                        WebKitDOMNode *parent;
 
-                                       parent = webkit_dom_node_get_parent_node (parent);
+                                       parent = webkit_dom_node_get_parent_node (nd);
                                        if (!WEBKIT_DOM_IS_HTML_ANCHOR_ELEMENT (parent))
                                                start_point = nd;
                                }


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