mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
GuiDocument.cpp: add missing validation code
This commit is contained in:
parent
d9a2a40268
commit
17a53bbcf9
@ -4066,6 +4066,14 @@ bool GuiDocument::isValid()
|
||||
textLayoutModule->indentCO->currentIndex() != 1 ||
|
||||
// or else a length has been given
|
||||
!textLayoutModule->indentLE->text().isEmpty()
|
||||
) &&
|
||||
(
|
||||
// if we're asking for indentation
|
||||
!textLayoutModule->MathIndentCB->isChecked() ||
|
||||
// then either we haven't chosen custom
|
||||
textLayoutModule->MathIndentCO->currentIndex() != 1 ||
|
||||
// or else a length has been given
|
||||
!textLayoutModule->MathIndentLE->text().isEmpty()
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user