[evolution/wip/webkit2] 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/wip/webkit2] EHTMLEditorSelection - Try to remove the link only when we find anchor
- Date: Wed, 22 Apr 2015 13:01:38 +0000 (UTC)
commit ce99a648a85f72ed3b290ed78909dd050462210f
Author: Tomas Popela <tpopela redhat com>
Date: Tue Mar 24 16:44:19 2015 +0100
EHTMLEditorSelection - Try to remove the link only when we find anchor
.../e-html-editor-selection-dom-functions.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/e-html-editor-selection-dom-functions.c
b/web-extensions/e-html-editor-selection-dom-functions.c
index da6c103..a4279ec 100644
--- a/web-extensions/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/e-html-editor-selection-dom-functions.c
@@ -436,6 +436,9 @@ dom_unlink (WebKitDOMDocument *document)
dom_exec_command (document, E_HTML_EDITOR_VIEW_COMMAND_UNLINK, NULL);
}
+ 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]