Amend [5c055034/lyxgit]

Relying on indexes is too fragile here
This commit is contained in:
Juergen Spitzmueller 2021-10-29 17:06:11 +02:00
parent 5c055034c2
commit 47b394f2c5

View File

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