mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* 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:
parent
58d9848d93
commit
e9cfa82c9f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user