mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-26 18:07:18 +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;
|
return false;
|
||||||
|
|
||||||
locateWord(from, to, WHOLE_WORD);
|
locateWord(from, to, WHOLE_WORD);
|
||||||
if (from >= pos_type(d->text_.size()))
|
if (from == to || from >= pos_type(d->text_.size()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
docstring word = asString(from, to, AS_STR_INSETS);
|
docstring word = asString(from, to, AS_STR_INSETS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user