mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +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()
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user