mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Fix bug 5149: Pasting outside math when cursor is inside
http://bugzilla.lyx.org/show_bug.cgi?id=5149 Make sure that the cursor is set to the right place before doing a middle- button paste. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26161 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2860cdaee2
commit
771673ccbb
@ -1160,6 +1160,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
|
||||
case mouse_button::button2:
|
||||
// Middle mouse pasting.
|
||||
bv->mouseSetCursor(cur);
|
||||
if (!cap::selection()) {
|
||||
// There is no local selection in the current buffer, so try to
|
||||
// paste primary selection instead.
|
||||
|
Loading…
Reference in New Issue
Block a user