[epiphany] ephy-window: do not do spell check for the empty string
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-window: do not do spell check for the empty string
- Date: Thu, 9 Jun 2011 18:31:40 +0000 (UTC)
commit 7084eadd14a1ba9013e1cb0206a7da5c2e23e014
Author: Xan Lopez <xlopez igalia com>
Date: Thu Jun 9 20:31:14 2011 +0200
ephy-window: do not do spell check for the empty string
src/ephy-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 5d9e6f8..7da0ba4 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1176,7 +1176,7 @@ update_popup_actions_visibility (EphyWindow *window,
range = webkit_web_frame_get_range_for_word_around_caret (frame);
text = webkit_dom_range_get_text (range);
- if (text)
+ if (text && *text != '\0')
{
int location, length;
WebKitSpellChecker *checker = (WebKitSpellChecker*)webkit_get_text_checker();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]