[evolution/wip/webkit2] EHTMLEditorView - Avoid unnecessary g_utf8_strlen call
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorView - Avoid unnecessary g_utf8_strlen call
- Date: Wed, 22 Apr 2015 13:09:38 +0000 (UTC)
commit 562cad287b36dcb8d56a72d1a11ad81b6cd31fa2
Author: Tomas Popela <tpopela redhat com>
Date: Mon Mar 30 10:48:17 2015 +0200
EHTMLEditorView - Avoid unnecessary g_utf8_strlen call
web-extensions/e-html-editor-view-dom-functions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/e-html-editor-view-dom-functions.c
b/web-extensions/e-html-editor-view-dom-functions.c
index 2f6be06..30b7dec 100644
--- a/web-extensions/e-html-editor-view-dom-functions.c
+++ b/web-extensions/e-html-editor-view-dom-functions.c
@@ -1730,7 +1730,7 @@ body_input_event_cb (WebKitDOMElement *element,
/* If text before caret includes UNICODE_ZERO_WIDTH_SPACE character, remove it */
if (WEBKIT_DOM_IS_TEXT (node)) {
gchar *text = webkit_dom_character_data_get_data (WEBKIT_DOM_CHARACTER_DATA (node));
- glong length = g_utf8_strlen (text, -1);
+ glong length = webkit_dom_character_data_get_length (WEBKIT_DOM_CHARACTER_DATA (node));
WebKitDOMNode *parent;
/* We have to preserve empty paragraphs with just UNICODE_ZERO_WIDTH_SPACE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]