Flotsam from Michael Schmidt's VSpace fixes...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8174 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-12-01 21:24:18 +00:00
parent 0aea5bd320
commit 00812b180b
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ VSpace setVSpaceFromWidgets(int spacing,
LengthCombo * unit,
bool keep)
{
VSpace space = VSpace(VSpace::DEFSKIP);
VSpace space;
switch (spacing) {
case 0:
@ -157,7 +157,7 @@ void QVSpace::apply()
// spacing
// If a vspace choice is "Length" but there's no text in
// the input field, do not insert a vspace at all.
if (dialog_->spacingCO->currentItem() == 6
if (dialog_->spacingCO->currentItem() == 5
&& dialog_->valueLE->text().isEmpty())
return;

View File

@ -75,7 +75,7 @@ VSpace const setVSpaceFromWidgets(FL_OBJECT * choice_type,
input_length && input_length->objclass == FL_INPUT &&
choice_length && choice_length->objclass == FL_CHOICE);
VSpace space = VSpace(VSpace::DEFSKIP);
VSpace space;
switch (fl_get_choice(choice_type)) {
case 1: