From 46e67c5053479beafce3716ec8be4f7e997e7fc9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 16 Oct 2024 16:37:41 +0300 Subject: common code went to the core --- plugins/TabSRMM/src/generic_msghandlers.cpp | 2 +- plugins/TabSRMM/src/msgdlgother.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM') diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp index 1dde4270ea..12f4643670 100644 --- a/plugins/TabSRMM/src/generic_msghandlers.cpp +++ b/plugins/TabSRMM/src/generic_msghandlers.cpp @@ -541,7 +541,7 @@ void CMsgDialog::DM_ScrollToBottom(WPARAM wParam, LPARAM lParam) m_bDeferredScroll = true; if (m_iLogMode == WANT_BUILTIN_LOG) - ((CLogWindow *)m_pLog)->ScrollToBottom(wParam != 0, lParam != 0); + LOG()->ScrollToBottom(wParam != 0, lParam != 0); else m_pLog->ScrollToBottom(); } diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index f9d345a4d8..10fcd4b601 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -1548,7 +1548,10 @@ void CMsgDialog::RemakeLog() m_szMicroLf[0] = 0; m_lastEventTime = 0; m_iLastEventType = -1; - StreamEvents(m_hDbEventFirst, -1, 0); + + CSuper::RemakeLog(); + + DM_ScrollToBottom(0, 0); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3