correct shift of spell results when erasing the last character in range

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37939 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-03-16 13:54:36 +00:00
parent 571b779b23
commit 07ef381914

View File

@ -112,7 +112,7 @@ public:
if (range_.first > pos) {
range_.first += offset;
range_.last += offset;
} else if (range_.last > pos) {
} else if (range_.last >= pos) {
range_.last += offset;
}
}