fix multirow/column logic in table dialog

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
This commit is contained in:
Uwe Stöhr 2012-09-11 21:58:13 +02:00
parent 6f58137318
commit 6f157533a1

View 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);