From: Uwe Stöhr Date: Mon, 17 Apr 2017 18:58:09 +0000 (+0200) Subject: GuiDocument.cpp: add missing validation code X-Git-Tag: 2.3.0alpha1~32 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=17a53bbcf97d386555dd76ff89594d495ddc9384;p=features.git GuiDocument.cpp: add missing validation code --- diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index d3ccb8f5b0..691bb2c924 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -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() ); }