mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Amend [5c055034/lyxgit]
Relying on indexes is too fragile here
This commit is contained in:
parent
5c055034c2
commit
47b394f2c5
@ -4861,7 +4861,9 @@ bool GuiDocument::isValid()
|
||||
// if we're asking for skips between paragraphs
|
||||
!textLayoutModule->skipRB->isChecked() ||
|
||||
// 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
|
||||
!textLayoutModule->skipLE->text().isEmpty()
|
||||
) &&
|
||||
|
Loading…
Reference in New Issue
Block a user