From: Uwe Stöhr Date: Mon, 1 Nov 2010 17:45:02 +0000 (+0000) Subject: InsetTabular.cpp: multirows are always left-aligned thus allow left alignment and... X-Git-Tag: 2.0.0~2140 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7c2b2c464b8c875860a6c2f9ca7347237421c4cc;p=features.git 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 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 228503629a..7d642e9052 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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;