]> git.lyx.org Git - lyx.git/commitdiff
Fix bug 3821: Put cursor where the mouse is before pasting external text.
authorRichard Heck <rgheck@comcast.net>
Thu, 7 Jun 2007 18:13:10 +0000 (18:13 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 7 Jun 2007 18:13:10 +0000 (18:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18702 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index 4584d6932bc21a488232dbfa0db3a53c9d6e646a..e935f3db8a8aa3b323bb87488ef4628dbf7146c3 100644 (file)
@@ -1047,8 +1047,10 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                                bv->switchKeyMap();
                                bv->buffer()->markDirty();
                                finishUndo();
-                       } else
+                       } else {
+                               bv->mouseSetCursor(cur);
                                lyx::dispatch(FuncRequest(LFUN_PRIMARY_SELECTION_PASTE, "paragraph"));
+                       }
                }
 
                // we have to update after dePM triggered