Fix Helge's ERT-in-tabular bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10390 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2005-08-07 18:36:21 +00:00
parent 03672d1484
commit b9898f8a87
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-08-07 Martin Vermeer <martin.vermeer@hut.fi>
* insettabular.C (getStatus): fix Helge's bug that a number of insets
including ERT could not be inserted in tabular.
2005-08-02 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetinclude.C (string2params): fix typo in error message (bug 1963).

View File

@ -1003,7 +1003,8 @@ bool InsetTabular::getStatus(LCursor & cur, FuncRequest const & cmd,
if (tablemode(cur)) {
status.enabled(false);
return true;
}
} else
return cell(cur.idx())->getStatus(cur, cmd, status);
}
// disable in non-fixed-width cells
@ -1014,7 +1015,8 @@ bool InsetTabular::getStatus(LCursor & cur, FuncRequest const & cmd,
if (tabular.getPWidth(cur.idx()).zero()) {
status.enabled(false);
return true;
}
} else
return cell(cur.idx())->getStatus(cur, cmd, status);
}
case LFUN_INSET_MODIFY: