Fixup b0c102cfb: make it possible to select medskip as parskip

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.
This commit is contained in:
Jean-Marc Lasgouttes 2021-10-29 16:38:29 +02:00
parent 61fb295e46
commit 5c055034c2

View 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()
) &&