mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
save the correct last position of misspelled words in spell checker state (thanks JMarc)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37340 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
996079334b
commit
5ee3c34096
@ -391,12 +391,9 @@ public:
|
|||||||
{
|
{
|
||||||
pos_type textsize = owner_->size();
|
pos_type textsize = owner_->size();
|
||||||
// check for sane arguments
|
// check for sane arguments
|
||||||
if (to < from || from >= textsize)
|
if (to <= from || from >= textsize)
|
||||||
return;
|
return;
|
||||||
FontSpan fp = FontSpan(from, to);
|
FontSpan fp = FontSpan(from, to - 1);
|
||||||
// don't mark end of paragraph
|
|
||||||
if (fp.last >= textsize)
|
|
||||||
fp.last = textsize - 1;
|
|
||||||
speller_state_.setRange(fp, state);
|
speller_state_.setRange(fp, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user