]> git.lyx.org Git - features.git/commitdiff
juergen's inset insert paste patch
authorJohn Levon <levon@movementarian.org>
Sun, 1 Jun 2003 01:13:17 +0000 (01:13 +0000)
committerJohn Levon <levon@movementarian.org>
Sun, 1 Jun 2003 01:13:17 +0000 (01:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7076 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text3.C

index 024ff471d8cc3b5e04b634eea87c6ec0349444e4..22133ef3d99a8820b9cd57bd4fa34da375e0e98b 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-01  John Levon  <levon@movementarian.org>
+
+       * text3.C: use a proper cut/paste when doing inset
+       insert (from Jürgen Spitzmüller)
+
 2003-06-01  John Levon  <levon@movementarian.org>
 
        * factory.C: accept "\bibtex" not "\BibTeX" (bug 1018)
index 6da72b34b15bdf54b5bab6e6a09cf0a4c7db30b6..6844d80b85b10f87ef88d9bd4c67688d9fbda72c 100644 (file)
@@ -381,7 +381,7 @@ void doInsertInset(LyXText * lt, FuncRequest const & cmd,
        if (inset) {
                bool gotsel = false;
                if (lt->selection.set()) {
-                       lt->cutSelection(true, false);
+                       bv->owner()->dispatch(FuncRequest(LFUN_CUT));
                        gotsel = true;
                }
                if (bv->insertInset(inset)) {
@@ -390,7 +390,7 @@ void doInsertInset(LyXText * lt, FuncRequest const & cmd,
                                inset->localDispatch(cmd);
                        }
                        if (gotsel && pastesel)
-                               bv->owner()->dispatch(FuncRequest(LFUN_PASTESELECTION));
+                               bv->owner()->dispatch(FuncRequest(LFUN_PASTE));
                }
                else
                        delete inset;