[evolution/gnome-3-18] 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/gnome-3-18] Bug 758849 - URL doesn't always unwrap on switch to Preformatted
- Date: Tue, 1 Dec 2015 10:14:17 +0000 (UTC)
commit b4f0fdba3339675b6d2c4a03fcebe031eb39e234
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 c1b613e..06e5f1f 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]