]> git.lyx.org Git - features.git/commitdiff
backport bug #7853
authorUwe Stöhr <uwestoehr@web.de>
Wed, 26 Oct 2011 02:03:33 +0000 (02:03 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Wed, 26 Oct 2011 02:03:33 +0000 (02:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40000 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPrintNomencl.cpp
status.20x

index 2054f599442a5545684910913f0623f796cae068..1e41e3e93b1e508b467e14dc6f033640c947320d 100644 (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);
 }
 
 
index c741d4b65d84875556d7337b0673da322121143b..51999dc9c344a485ec109a1488cc2309383c6cc6 100644 (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