[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - vcl/jsdialog

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Wed May 26 07:53:49 UTC 2021


 vcl/jsdialog/executor.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7b344169b2d7e0416fa97d9c5765c48accdd7c76
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed May 26 09:53:05 2021 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed May 26 09:53:16 2021 +0200

    jsdialog: normalize value for spinfield
    
    Change-Id: Ia65b1342222952cbec1ddfba4b7464172fd2b40c

diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx
index adebbcb21b9d..d40a663474ad 100644
--- a/vcl/jsdialog/executor.cxx
+++ b/vcl/jsdialog/executor.cxx
@@ -179,7 +179,7 @@ bool ExecuteAction(sal_uInt64 nWindowId, const OString& rWidget, StringMap& rDat
                 {
                     OString sValue = OUStringToOString(rData["data"], RTL_TEXTENCODING_ASCII_US);
                     int nValue = std::atoi(sValue.getStr());
-                    pSpinField->set_value(nValue);
+                    pSpinField->set_value(pSpinField->normalize(nValue));
                     LOKTrigger::trigger_value_changed(*pSpinField);
                     return true;
                 }


More information about the Libreoffice-commits mailing list