]> git.lyx.org Git - features.git/commitdiff
* src/insets/InsetTabular.cpp (doDispatch):
authorJürgen Spitzmüller <spitz@lyx.org>
Thu, 22 Nov 2007 09:09:39 +0000 (09:09 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Thu, 22 Nov 2007 09:09:39 +0000 (09:09 +0000)
- add missing recordUndo to LFUN_CLIPBOARD_PASTE /
  LFUN_PRIMARY_SELECTION_PASTE (bug 4371)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21715 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 9bdff844687ca9b5ace65d5f38ff37139cbf959b..16dbe1427ae190bd9b8ec14e5b486f337b0e9b08 100644 (file)
@@ -3455,6 +3455,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
                // pass to InsertPlaintextString, but
                // only if we have multi-cell content
                if (clip.find_first_of(from_ascii("\t\n")) != docstring::npos) {
+                       cur.recordUndoInset(INSERT_UNDO);
                        if (insertPlaintextString(cur.bv(), clip, false)) {
                                // content has been replaced,
                                // so cursor might be invalid