From: Angus Leeming Date: Mon, 1 Dec 2003 21:24:18 +0000 (+0000) Subject: Flotsam from Michael Schmidt's VSpace fixes... X-Git-Tag: 1.6.10~15713 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=00812b180b254fb8fcb78a77bca048c00126c25d;p=lyx.git Flotsam from Michael Schmidt's VSpace fixes... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8174 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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: