diff --git a/src/frontends/qt2/QVSpace.C b/src/frontends/qt2/QVSpace.C index 9fa7e46fdd..76b3888292 100644 --- a/src/frontends/qt2/QVSpace.C +++ b/src/frontends/qt2/QVSpace.C @@ -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; diff --git a/src/frontends/xforms/FormVSpace.C b/src/frontends/xforms/FormVSpace.C index 143ada2f31..20413130e6 100644 --- a/src/frontends/xforms/FormVSpace.C +++ b/src/frontends/xforms/FormVSpace.C @@ -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: