]> git.lyx.org Git - features.git/commitdiff
(getStatus): add extra condition for PASTE to reflect tabularStack (bug 2377)
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 17 Mar 2006 13:11:32 +0000 (13:11 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 17 Mar 2006 13:11:32 +0000 (13:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13411 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insettabular.C

index 82f97175731a224992abdad7928f0dbe8cd9a03d..f0c7f776f052f074666b3731c1410b2a725bb1c0 100644 (file)
@@ -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);