mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
76aaecb221
commit
2f4f246512
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user