mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
InsetTabular.cpp: multirows are always left-aligned thus allow left alignment and forbid center alignment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35969 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
90291acefb
commit
7c2b2c464b
@ -4278,10 +4278,10 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
status.setOnOff(tabular.rightLine(cur.idx()));
|
||||
break;
|
||||
|
||||
// multirow cells are alwas left aligned
|
||||
case Tabular::M_ALIGN_LEFT:
|
||||
flag = false;
|
||||
case Tabular::ALIGN_LEFT:
|
||||
status.setEnabled(!tabular.isMultiRow(cur.idx()));
|
||||
status.setOnOff(tabular.getAlignment(cur.idx(), flag) == LYX_ALIGN_LEFT);
|
||||
break;
|
||||
|
||||
@ -4295,6 +4295,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
case Tabular::M_ALIGN_CENTER:
|
||||
flag = false;
|
||||
case Tabular::ALIGN_CENTER:
|
||||
status.setEnabled(!tabular.isMultiRow(cur.idx()));
|
||||
status.setOnOff(tabular.getAlignment(cur.idx(), flag) == LYX_ALIGN_CENTER);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user