]> git.lyx.org Git - features.git/commitdiff
InsetTabular.cpp: multirows are always left-aligned thus allow left alignment and...
authorUwe Stöhr <uwestoehr@web.de>
Mon, 1 Nov 2010 17:45:02 +0000 (17:45 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Mon, 1 Nov 2010 17:45:02 +0000 (17:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35969 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 228503629a1ec4ecf7fb4f30572d76c2a705fa0a..7d642e9052997051534d61b40f9b890a12eb1c67 100644 (file)
@@ -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;