]> git.lyx.org Git - lyx.git/commitdiff
fix multirow/column logic in table dialog
authorUwe Stöhr <uwestoehr@lyx.org>
Tue, 11 Sep 2012 19:58:13 +0000 (21:58 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Tue, 11 Sep 2012 19:58:13 +0000 (21:58 +0200)
GuiTabular.cpp: a cell can either be a multicolumn or multirow, not both the same time, this is already respected by the toolbar and context menu, only the dialog allowed to set this although this was correctly never applied

should also go to branch

src/frontends/qt4/GuiTabular.cpp

index ee4d1dfe7bb1d591aabee514c0e3d9934bd90b76..6c1505a08ea9227fde1fadff50d67fde357f926e 100644 (file)
@@ -311,8 +311,10 @@ void GuiTabular::checkEnabled()
        captionStatusCB->setEnabled(funcEnabled(Tabular::TOGGLE_LTCAPTION)
                && longtabular);
 
-       multicolumnCB->setEnabled(funcEnabled(Tabular::MULTICOLUMN) && !dalign);
-       multirowCB->setEnabled(funcEnabled(Tabular::MULTIROW) && !dalign);
+       multicolumnCB->setEnabled(funcEnabled(Tabular::MULTICOLUMN)
+               && !dalign && !multirowCB->isChecked());
+       multirowCB->setEnabled(funcEnabled(Tabular::MULTIROW)
+               && !dalign && !multicolumnCB->isChecked());
        bool const enable_mr = multirowCB->isChecked();
        multirowOffsetLA->setEnabled(enable_mr);
        multirowOffsetED->setEnabled(enable_mr);