A word have a non zero size.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30230 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2009-06-22 21:27:51 +00:00
parent 76aaecb221
commit 2f4f246512

View 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);