summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-25 13:24:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-25 13:24:33 +0300
commit5623e34833d5e973f2c9897cd022d5ca6270904c (patch)
tree008f0db16b3ac83612d95384885c6633d2abf6da
parentf1fa87fe7200c11fefbab51a6aa373c0b0aa36f5 (diff)
fixes #2804 (CCtrlEdit changes do not affect CCtrlSpin position)
-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;
}