From 5623e34833d5e973f2c9897cd022d5ca6270904c Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Thu, 25 Mar 2021 13:24:33 +0300
Subject: fixes #2804 (CCtrlEdit changes do not affect CCtrlSpin position)

---
 src/mir_core/src/CCtrlSpin.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;
 }
 
-- 
cgit v1.2.3