]> git.lyx.org Git - lyx.git/commitdiff
Fixup b0c102cfb: make it possible to select medskip as parskip
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 29 Oct 2021 14:38:29 +0000 (16:38 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 29 Oct 2021 14:41:00 +0000 (16:41 +0200)
Some new parskip possibilities had been added, but the check for
custom length index had not bee updated.

This code is very fragile.

Related to bug #10968.

src/frontends/qt/GuiDocument.cpp

index 5a4584eece42f57ce92028341e6660e514c9302d..ee2ee17243283c3219dec1a1f43fdaa1c9d65d20 100644 (file)
@@ -4861,7 +4861,7 @@ bool GuiDocument::isValid()
                        // if we're asking for skips between paragraphs
                        !textLayoutModule->skipRB->isChecked() ||
                        // then either we haven't chosen custom
-                       textLayoutModule->skipCO->currentIndex() != 3 ||
+                       textLayoutModule->skipCO->currentIndex() != 5 ||
                        // or else a length has been given
                        !textLayoutModule->skipLE->text().isEmpty()
                ) &&