[evolution/gnome-3-20] EHTMLEditorSelection - Anchors could be wrongly wrapped in quoted content



commit b27a837b5ae27b50d9a94171bffdc9b101a03c71
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Apr 8 08:53:06 2016 +0200

    EHTMLEditorSelection - Anchors could be wrongly wrapped in quoted content

 e-util/e-html-editor-selection.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 242ed2a..aefacfc 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -6564,7 +6564,11 @@ wrap_lines (EHTMLEditorSelection *selection,
                                        webkit_dom_html_element_set_outer_text (
                                                WEBKIT_DOM_HTML_ELEMENT (nd), " ", NULL);
                                } else if (!prev_nd) {
-                                       start_point = nd;
+                                       WebKitDOMNode *parent;
+
+                                       parent = webkit_dom_node_get_parent_node (parent);
+                                       if (!WEBKIT_DOM_IS_HTML_ANCHOR_ELEMENT (parent))
+                                               start_point = nd;
                                }
 
                                nd = prev_nd;


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