vcl/source/app/salvtables.cxx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 31d47a2d703a756768524b62e540019b84b9cb89
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sun Feb 22 21:39:08 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue Feb 24 10:39:03 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]>

diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index ae6b31d986fd..4a44d7ab1b08 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -5427,7 +5427,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>)
 {

Reply via email to