GuiDocument.cpp: add missing validation code

This commit is contained in:
Uwe Stöhr 2017-04-17 20:58:09 +02:00
parent d9a2a40268
commit 17a53bbcf9

View File

@ -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()
);
}