From 85e5d42e5f399702c67156547caf1c34f4035ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Thu, 22 Nov 2007 09:10:40 +0000 Subject: [PATCH] * src/insets/InsetTabular.cpp (doDispatch): - add missing recordUndo to LFUN_CLIPBOARD_PASTE / LFUN_PRIMARY_SELECTION_PASTE (bug 4371) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21716 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 1 + status.15x | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 71b0ba4de3..ab79fd0ac8 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3423,6 +3423,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) { + recordUndoInset(cur, Undo::INSERT); if (insertPlaintextString(cur.bv(), clip, false)) { // content has been replaced, // so cursor might be invalid diff --git a/status.15x b/status.15x index 2886ce15d1..2b5a77b680 100644 --- a/status.15x +++ b/status.15x @@ -133,6 +133,8 @@ What's new - Fix cut and paste of tabular cells via the external clipboard (bug 4147). +- Fix undo in tabulars after pasting via the external clipboard (bug 4371). + - Repair wasy font such that it can also be used on Mac (bug 2326). - Fix color of some math symbols (bug 2330).