mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
GuiTabular.cpp: don't rely on a string but on the combobox data
It was not safe in changeset 9d05ac5c
to search for a text because it can be translated, better search for the data, thanks Pavel for spotting
This commit is contained in:
parent
fd0e8d88ba
commit
237cb51fb1
@ -211,10 +211,10 @@ void GuiTabular::checkEnabled()
|
||||
&& specialAlignmentED->text().isEmpty());
|
||||
// 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(hAlignCO->findText(qt_("At Decimal Separator")));
|
||||
&& hAlignCO->findData(toqstr("decimal")))
|
||||
hAlignCO->removeItem(hAlignCO->findData(toqstr("decimal")));
|
||||
else if (!multicolumnCB->isChecked() && !multirowCB->isChecked()
|
||||
&& hAlignCO->findText(qt_("At Decimal Separator")) == -1)
|
||||
&& hAlignCO->findData(toqstr("decimal")) == -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