From: Jean-Marc Lasgouttes Date: Thu, 14 Aug 2008 10:28:20 +0000 (+0000) Subject: Fix bug 5156 http://bugzilla.lyx.org/show_bug.cgi?id=5156 X-Git-Tag: 1.6.10~3648 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5ca204ea10128242da69e0f0feae8a57751fc905;p=features.git Fix bug 5156 http://bugzilla.lyx.org/show_bug.cgi?id=5156 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 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index b102dc85a3..14f03da35e 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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; }