[evolution] EHTMLEditorSelection - Try to remove the link only when we find anchor
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorSelection - Try to remove the link only when we find anchor
- Date: Fri, 20 Feb 2015 07:40:43 +0000 (UTC)
commit e49c913e704699b99b23ae6519294f6bb381eac6
Author: Tomas Popela <tpopela redhat com>
Date: Fri Feb 20 08:29:50 2015 +0100
EHTMLEditorSelection - Try to remove the link only when we find anchor
e-util/e-html-editor-selection.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 47a271c..3e011ad 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -4354,6 +4354,9 @@ e_html_editor_selection_unlink (EHTMLEditorSelection *selection)
link = WEBKIT_DOM_ELEMENT (node);
}
+ if (!link)
+ return;
+
text = webkit_dom_html_element_get_inner_text (
WEBKIT_DOM_HTML_ELEMENT (link));
webkit_dom_html_element_set_outer_html (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]