From: <sv...@op...> - 2025-01-02 13:33:15
|
Author: sagamusix Date: Thu Jan 2 14:33:08 2025 New Revision: 22690 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22690 Log: [Fix] Long tooltips were read from wrong variable (this worked because CStrings have no move constructor yet). Modified: trunk/OpenMPT/mptrack/DialogBase.cpp Modified: trunk/OpenMPT/mptrack/DialogBase.cpp ============================================================================== --- trunk/OpenMPT/mptrack/DialogBase.cpp Thu Jan 2 09:17:17 2025 (r22689) +++ trunk/OpenMPT/mptrack/DialogBase.cpp Thu Jan 2 14:33:08 2025 (r22690) @@ -120,7 +120,7 @@ } else { m_tooltipText = std::move(s); - pTTT->lpszText = const_cast<TCHAR *>(s.GetString()); + pTTT->lpszText = const_cast<TCHAR *>(m_tooltipText.GetString()); } *pResult = 0; |