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
This commit is contained in:
Jean-Marc Lasgouttes 2008-08-14 10:28:20 +00:00
parent aa67d5eb64
commit 5ca204ea10

View 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;
}