backport bug #7853

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40000 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2011-10-26 02:03:33 +00:00
parent 9797dba75a
commit dd87ea4a99
2 changed files with 11 additions and 6 deletions

View File

@ -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);
}

View File

@ -189,6 +189,8 @@ What's new
- Fix display of section (etc) headings, in both TOC and menu, when there is
math in the title.
- Correct handling of custom width in the nomenclature dialog (bug 7853).
* ADVANCED FIND AND REPLACE