[evolution/gnome-3-20] EHTMLEditorSelection - Ask for a parent node of the right node



commit f77392034c1e6a6301b7a67e499c4f7addbee699
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Apr 11 11:02:53 2016 +0200

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

 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 aefacfc..9d13221 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -6566,7 +6566,7 @@ wrap_lines (EHTMLEditorSelection *selection,
                                } 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]