GuiParagraph: fix thinko (bug #9621)

This commit is contained in:
Juergen Spitzmueller 2015-06-13 12:16:34 +02:00
parent c783ef962d
commit 930fef9d8d

View File

@ -167,9 +167,13 @@ void GuiParagraph::on_synchronizedViewCB_toggled()
void GuiParagraph::changed() void GuiParagraph::changed()
{ {
QLocale loc; 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() if (synchronizedViewCB->isChecked()
&& !linespacingValue->text().endsWith(loc.decimalPoint()) && (linespacing->currentIndex() != 4
&& linespacingValue->hasAcceptableInput()) || (!linespacingValue->text().endsWith(loc.decimalPoint())
&& linespacingValue->hasAcceptableInput())))
on_applyPB_clicked(); on_applyPB_clicked();
} }