diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-05-26 09:53:05 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-07-19 13:54:28 +0200 |
commit | c3158c6a11fa1d79bce36789768f6811a5a82623 (patch) | |
tree | bb1f9ec43c52250b8a51f01b15d4c45be740cde0 /vcl/jsdialog | |
parent | 9518eaf9db7f0de14401489170fad7408cfd127b (diff) |
jsdialog: normalize value for spinfield
Change-Id: Ia65b1342222952cbec1ddfba4b7464172fd2b40c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119161
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/jsdialog')
-rw-r--r-- | vcl/jsdialog/executor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx index c979230e7f31..61809d72c358 100644 --- a/vcl/jsdialog/executor.cxx +++ b/vcl/jsdialog/executor.cxx @@ -178,7 +178,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; } |