fix setting of vfill in paragraph dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6505 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2003-03-14 15:09:41 +00:00
parent ab3b768c24
commit c2123ad509
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-03-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* QParagraph.C (apply): do not reset vfill spacing to 'none' when
there is no explicit length given (off by one typo)
2003-03-13 Angus Leeming <leeming@lyx.org>
* Dialogs.C:

View File

@ -132,7 +132,7 @@ void QParagraph::apply()
// SPACING ABOVE
// If a vspace kind is "Length" but there's no text in
// the input field, reset the kind to "None".
if (dialog_->spacingAbove->currentItem() == 5
if (dialog_->spacingAbove->currentItem() == 6
&& dialog_->valueAbove->text().isEmpty())
dialog_->spacingAbove->setCurrentItem(0);
@ -145,7 +145,7 @@ void QParagraph::apply()
params.spaceTop(space_top);
// SPACING BELOW
if (dialog_->spacingBelow->currentItem() == 5
if (dialog_->spacingBelow->currentItem() == 6
&& dialog_->valueBelow->text().isEmpty())
dialog_->spacingBelow->setCurrentItem(0);