]> git.lyx.org Git - features.git/commitdiff
GuiParagraph: fix thinko (bug #9621)
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 13 Jun 2015 10:16:34 +0000 (12:16 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 13 Jun 2015 10:17:11 +0000 (12:17 +0200)
src/frontends/qt4/GuiParagraph.cpp

index 1bc22488a9a112c8f1192b3c9096f06f283bcbce..8efe15f3430cbd20f7f03571248131d2fad16f9f 100644 (file)
@@ -167,9 +167,13 @@ void GuiParagraph::on_synchronizedViewCB_toggled()
 void GuiParagraph::changed()
 {
        QLocale loc;
+       // We apply immediately, except if we have custom line spacing
+       // with an intermediate result (trailing decimal separator) or
+       // an invalid value (which might as well be intermediate)
        if (synchronizedViewCB->isChecked()
-           && !linespacingValue->text().endsWith(loc.decimalPoint())
-           && linespacingValue->hasAcceptableInput())
+           && (linespacing->currentIndex() != 4
+               || (!linespacingValue->text().endsWith(loc.decimalPoint())
+                   && linespacingValue->hasAcceptableInput())))
                on_applyPB_clicked();
 }