From cac8b7abb6050e4763f458c494820dcd39124c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 17 Mar 2006 13:15:17 +0000 Subject: [PATCH] add extra condition for PASTE to reflect tabularStack (bug 2377) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13413 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insettabular.C | 6 ++++++ status.14x | 2 ++ 3 files changed, 13 insertions(+) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 9db27cbf09..f8ea5e6f8b 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2006-03-17 Jürgen Spitzmüller + + * insettabular.C (getStatus): add extra condition for PASTE in + respect of the tabularStack (bug 2377). + 2006-03-11 Jürgen Spitzmüller * insettabular.C (dist): fix miscalculation of rowheight (bug 2006) diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 82f9717573..f0c7f776f0 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -1036,6 +1036,12 @@ bool InsetTabular::getStatus(LCursor & cur, FuncRequest const & cmd, return cell(cur.idx())->getStatus(cur, cmd, status); } + case LFUN_PASTE: + if (tabularStackDirty()) { + status.enabled(true); + return true; + } + case LFUN_INSET_MODIFY: if (translate(cmd.getArg(0)) == TABULAR_CODE) { status.enabled(true); diff --git a/status.14x b/status.14x index 858e384d35..45c4bfdefc 100644 --- a/status.14x +++ b/status.14x @@ -61,6 +61,8 @@ What's new - Fix cursor positioning in tabulars (bug 2006). +- Fix copy and paste for multiple cells (bug 2377). + - Adjust cursor after backspace in change tracking mode (bug 2185). - Update screen when cursor was between two spaces and goes to