[epiphany] ephy-window: do not do spell check for the empty string



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]