[LyX/master] Amend [5c055034/lyxgit]
Juergen Spitzmueller
spitz at lyx.org
Fri Oct 29 14:42:35 UTC 2021
commit 47b394f2c5867b0b81ca6f6fbda26a98f53f3a51
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Oct 29 17:06:11 2021 +0200
Amend [5c055034/lyxgit]
Relying on indexes is too fragile here
---
src/frontends/qt/GuiDocument.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp
index ee2ee17..cc74a19 100644
--- a/src/frontends/qt/GuiDocument.cpp
+++ b/src/frontends/qt/GuiDocument.cpp
@@ -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()
) &&
More information about the lyx-cvs
mailing list