diff --git a/Source/UI/UIMacroUserInfoWnd.cpp b/Source/UI/UIMacroUserInfoWnd.cpp index 39cec3f28..5388df637 100644 --- a/Source/UI/UIMacroUserInfoWnd.cpp +++ b/Source/UI/UIMacroUserInfoWnd.cpp @@ -245,9 +245,11 @@ void UIMacroReporterWnd::Slot25(int x, int y) { } g_windowMgr.SetCapture(this); - this->ToScreen(x, y); - this->m_dragX = x; - this->m_dragY = y; + int screenX = x; + int screenY = y; + this->ToScreen(screenX, screenY); + this->m_dragX = screenX; + this->m_dragY = screenY; this->m_originX = this->geometry.x; this->m_originY = this->geometry.y; g_snapMgr.CaptureOrigins(this);