aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-06-10 02:31:14 +0800
committerXan Lopez <xlopez@igalia.com>2011-06-10 02:31:14 +0800
commit7084eadd14a1ba9013e1cb0206a7da5c2e23e014 (patch)
treef6f16de1f4ccd17e4bc87c50d734873e79b1faf0 /src
parentdca1e2ef7e8864cde8f7299da3ee3785132b17b1 (diff)
downloadgsoc2013-epiphany-7084eadd14a1ba9013e1cb0206a7da5c2e23e014.tar
gsoc2013-epiphany-7084eadd14a1ba9013e1cb0206a7da5c2e23e014.tar.gz
gsoc2013-epiphany-7084eadd14a1ba9013e1cb0206a7da5c2e23e014.tar.bz2
gsoc2013-epiphany-7084eadd14a1ba9013e1cb0206a7da5c2e23e014.tar.lz
gsoc2013-epiphany-7084eadd14a1ba9013e1cb0206a7da5c2e23e014.tar.xz
gsoc2013-epiphany-7084eadd14a1ba9013e1cb0206a7da5c2e23e014.tar.zst
gsoc2013-epiphany-7084eadd14a1ba9013e1cb0206a7da5c2e23e014.zip
ephy-window: do not do spell check for the empty string
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 5d9e6f854..7da0ba4e4 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();