* InsetTabular.cpp: multirow does not allow paragraph breaks (bug 7051).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37597 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2011-02-11 09:42:33 +00:00
parent 58d9848d93
commit e9cfa82c9f

View File

@ -4623,8 +4623,13 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
}
// disable in non-fixed-width cells
case LFUN_NEWLINE_INSERT:
case LFUN_BREAK_PARAGRAPH: {
case LFUN_BREAK_PARAGRAPH:
// multirow does not allow paragraph breaks
if (tabular.isMultiRow(cur.idx())) {
status.setEnabled(false);
return true;
}
case LFUN_NEWLINE_INSERT: {
if (tabular.getPWidth(cur.idx()).zero()) {
status.setEnabled(false);
return true;