From 07ef3819149ccdf078bb3157b2bfc5b7a1584254 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Wed, 16 Mar 2011 13:54:36 +0000 Subject: [PATCH] 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 --- src/Paragraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 582a39f1ab..7d50462e0b 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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; } }