]> git.lyx.org Git - features.git/commitdiff
fix setting of vfill in paragraph dialog
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 14 Mar 2003 15:09:41 +0000 (15:09 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 14 Mar 2003 15:09:41 +0000 (15:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6505 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/QParagraph.C

index face3248922d81f40e934dfc5dd82edc4fdf2e82..e92aba320760da0d3728623ae5e0fcebdba181be 100644 (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:
index 00c793c3b4f8be8e1d210bfacca5155c377c846d..8c0533ef812712a08fe4527916a6aacd49d45404 100644 (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);