]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiVSpace.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiVSpace.cpp
index 995393a9790dd9b42d8821057a5859078c11fb16..70d2ba7e6e4f7ffc642969da6645207bf8024ccf 100644 (file)
@@ -59,7 +59,7 @@ GuiVSpace::GuiVSpace(GuiView & lv)
        connect(unitCO, SIGNAL(selectionChanged(lyx::Length::UNIT)),
                this, SLOT(change_adaptor()));
 
-       valueLE->setValidator(unsignedLengthValidator(valueLE));
+       valueLE->setValidator(unsignedGlueLengthValidator(valueLE));
 
        // Manage the ok, apply, restore and cancel/close buttons
        bc().setPolicy(ButtonPolicy::OkApplyCancelReadOnlyPolicy);
@@ -75,9 +75,6 @@ GuiVSpace::GuiVSpace(GuiView & lv)
 
        // initialize the length validator
        bc().addCheckedLineEdit(valueLE, valueL);
-
-       // remove the %-items from the unit choice
-       unitCO->noPercents();
 }