mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
GuiTabular.cpp: don't hardcode decimal align combobox item
This commit is contained in:
parent
6f157533a1
commit
b64d17e9dc
@ -212,9 +212,9 @@ void GuiTabular::checkEnabled()
|
||||
// decimal alignment is only possible for non-multicol and non-multirow cells
|
||||
if ((multicolumnCB->isChecked() || multirowCB->isChecked())
|
||||
&& hAlignCO->findText(qt_("At Decimal Separator")))
|
||||
hAlignCO->removeItem(3);
|
||||
hAlignCO->removeItem(hAlignCO->findText(qt_("At Decimal Separator")));
|
||||
else if (!multicolumnCB->isChecked() && !multirowCB->isChecked()
|
||||
&& !hAlignCO->findText(qt_("At Decimal Separator")))
|
||||
&& hAlignCO->findText(qt_("At Decimal Separator")) == -1)
|
||||
hAlignCO->addItem(qt_("At Decimal Separator"), toqstr("decimal"));
|
||||
bool const dalign =
|
||||
hAlignCO->itemData(hAlignCO->currentIndex()).toString() == QString("decimal");
|
||||
|
Loading…
Reference in New Issue
Block a user