Disable newlines and paragraph breaks in non-fixed width tabular cells (bug 1938)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10366 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-07-28 09:45:43 +00:00
parent c22fb327fc
commit a5e061ce42
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-07-28 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insettabular.C (getStatus): disable line and paragraph breaks
in non-fixed-width cells (bug 1938).
2005-07-27 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insetfloat.C:

View File

@ -1006,6 +1006,17 @@ bool InsetTabular::getStatus(LCursor & cur, FuncRequest const & cmd,
}
}
// disable in non-fixed-width cells
case LFUN_BREAKLINE:
case LFUN_BREAKPARAGRAPH:
case LFUN_BREAKPARAGRAPHKEEPLAYOUT:
case LFUN_BREAKPARAGRAPH_SKIP: {
if (tabular.getPWidth(cur.idx()).zero()) {
status.enabled(false);
return true;
}
}
case LFUN_INSET_MODIFY:
if (translate(cmd.getArg(0)) == TABULAR_CODE) {
status.enabled(true);