summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_core/src/CCtrlSpin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mir_core/src/CCtrlSpin.cpp b/src/mir_core/src/CCtrlSpin.cpp
index 2c254025b7..223a333ae9 100644
--- a/src/mir_core/src/CCtrlSpin.cpp
+++ b/src/mir_core/src/CCtrlSpin.cpp
@@ -47,8 +47,9 @@ bool CCtrlSpin::OnApply()
{
CSuper::OnApply();
+ m_wCurr = SendMsg(UDM_GETPOS, 0, 0);
if (m_dbLink != nullptr)
- SaveInt(GetPosition());
+ SaveInt(m_wCurr);
return true;
}