mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
GuiParagraph: fix thinko (bug #9621)
This commit is contained in:
parent
c783ef962d
commit
930fef9d8d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user