[evolution] Bug 758849 - URL doesn't always unwrap on switch to Preformatted
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 758849 - URL doesn't always unwrap on switch to Preformatted
- Date: Tue, 1 Dec 2015 10:13:33 +0000 (UTC)
commit 9a0e8eba9e12fceeda6287b47ea02defa8d14141
Author: Tomas Popela <tpopela redhat com>
Date: Tue Dec 1 10:59:20 2015 +0100
Bug 758849 - URL doesn't always unwrap on switch to Preformatted
The problem was that when the link was inserted into the view and return was
pressed we again recognized already recognized link and inserted another anchor
into it which later caused the e_html_editor_get_parent_block_node_from_child
to misbehave.
e-util/e-html-editor-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index ee66026..b148ac3 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -1459,7 +1459,7 @@ html_editor_view_check_magic_links (EHTMLEditorView *view,
node = webkit_dom_range_get_end_container (range, NULL);
}
- if (!node)
+ if (!node || WEBKIT_DOM_IS_HTML_ANCHOR_ELEMENT (node))
goto out;
if (!WEBKIT_DOM_IS_TEXT (node)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]