vcl/source/app/salvtables.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit 35cc1ae47a2ead7527bed881206a094691c86bc6 Author: Caolán McNamara <[email protected]> AuthorDate: Sun Feb 22 21:39:08 2026 +0000 Commit: Adolfo Jayme Barrientos <[email protected]> CommitDate: Wed Feb 25 15:59:36 2026 +0100 Resolves: tdf#134725 Don't signal for empty text The Formatter has IsEmptyFieldEnabled enabled, so empty values are intended to be no-change. Change-Id: Idb91317eda608a477ef480335665591e849a5a69 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199998 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> (cherry picked from commit 31d47a2d703a756768524b62e540019b84b9cb89) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200163 Reviewed-by: Adolfo Jayme Barrientos <[email protected]> diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 69e2525c6626..f12598030011 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -5718,7 +5718,13 @@ IMPL_LINK_NOARG(SalInstanceSpinButton, ActivateHdl, Edit&, bool) IMPL_LINK_NOARG(SalInstanceSpinButton, UpDownHdl, SpinField&, void) { signal_value_changed(); } -IMPL_LINK_NOARG(SalInstanceSpinButton, LoseFocusHdl, Control&, void) { signal_value_changed(); } +IMPL_LINK_NOARG(SalInstanceSpinButton, LoseFocusHdl, Control&, void) +{ + // tdf#134725 Don't signal for empty text, the Formatter has IsEmptyFieldEnabled + // enabled, so empty values are intended to be no-change. + if (!m_xButton->GetText().isEmpty()) + signal_value_changed(); +} IMPL_LINK(SalInstanceSpinButton, OutputHdl, double, fValue, std::optional<OUString>) {
