mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
c22fb327fc
commit
a5e061ce42
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user