]> git.lyx.org Git - features.git/commitdiff
Fix bug 5156 http://bugzilla.lyx.org/show_bug.cgi?id=5156
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 14 Aug 2008 10:28:20 +0000 (10:28 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 14 Aug 2008 10:28:20 +0000 (10:28 +0000)
Be more strict when evaluating whether the cursor is inside the selection

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26159 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index b102dc85a3312c8de8551c2a4362c005558397b6..14f03da35ef0d9200e1baabbd75dce739a2c9aca 100644 (file)
@@ -1184,7 +1184,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                        // Don't do anything if we right-click a
                        // selection, a context menu will popup.
                        if (bvcur.selection() && cur >= bvcur.selectionBegin()
-                           && cur <= bvcur.selectionEnd()) {
+                           && cur < bvcur.selectionEnd()) {
                                cur.noUpdate();
                                return;
                        }