]> git.lyx.org Git - features.git/commitdiff
A word have a non zero size.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 22 Jun 2009 21:27:51 +0000 (21:27 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 22 Jun 2009 21:27:51 +0000 (21:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30230 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 47f08d22cf857c3dd87de133a3e1c6b81717a0bd..3965a61d3c96db9b0628dc6fffb6d5c97ae43993 100644 (file)
@@ -3089,7 +3089,7 @@ bool Paragraph::spellCheck(pos_type & from, pos_type & to, WordLangTuple & wl,
                return false;
 
        locateWord(from, to, WHOLE_WORD);
-       if (from >= pos_type(d->text_.size()))
+       if (from == to || from >= pos_type(d->text_.size()))
                return false;
 
        docstring word = asString(from, to, AS_STR_INSETS);