mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
GuiPrintNomencl.cpp: fix bug #7853
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39959 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
46e4463066
commit
981e958b9d
@ -56,8 +56,7 @@ GuiPrintNomencl::GuiPrintNomencl(QWidget * parent) : InsetParamsWidget(parent)
|
||||
void GuiPrintNomencl::on_setWidthCO_activated(int i)
|
||||
{
|
||||
bool const custom =
|
||||
(setWidthCO->itemData(i).toString()
|
||||
== "custom");
|
||||
(setWidthCO->itemData(i).toString() == "custom");
|
||||
valueLE->setEnabled(custom);
|
||||
unitLC->setEnabled(custom);
|
||||
valueLA->setEnabled(custom);
|
||||
@ -70,10 +69,14 @@ void GuiPrintNomencl::paramsToDialog(InsetCommandParams const & params)
|
||||
setWidthCO->setCurrentIndex(
|
||||
setWidthCO->findData(toqstr(params["set_width"])));
|
||||
|
||||
lengthToWidgets(valueLE,
|
||||
unitLC,
|
||||
params["width"],
|
||||
Length::defaultUnit());
|
||||
lengthToWidgets(valueLE, unitLC,
|
||||
params["width"], Length::defaultUnit());
|
||||
|
||||
bool const custom =
|
||||
(setWidthCO->itemData(setWidthCO->currentIndex()).toString() == "custom");
|
||||
valueLE->setEnabled(custom);
|
||||
unitLC->setEnabled(custom);
|
||||
valueLA->setEnabled(custom);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user