]> git.lyx.org Git - features.git/commitdiff
Fix bug 5149: Pasting outside math when cursor is inside
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 14 Aug 2008 11:03:51 +0000 (11:03 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 14 Aug 2008 11:03:51 +0000 (11:03 +0000)
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

src/Text3.cpp

index 14f03da35ef0d9200e1baabbd75dce739a2c9aca..d98635c9aa158dac79d36f930422cab56465e66b 100644 (file)
@@ -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.