mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 00:38:01 +00:00
Fix off-by-one condition when right clicking over selection
Fixes bug #10429.
This commit is contained in:
parent
5908bb3ea6
commit
566b4de5cd
@ -1857,7 +1857,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.noScreenUpdate();
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user