From 734a0c2ce025703b6ad29469ec21c0545a0905ae Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Jun 2018 22:08:29 +0300 Subject: StdMsg: ScrollToBottom should be called after applying smileys --- src/core/stdmsg/src/msglog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/msglog.cpp b/src/core/stdmsg/src/msglog.cpp index 6d119f616a..1fba3ccc7f 100644 --- a/src/core/stdmsg/src/msglog.cpp +++ b/src/core/stdmsg/src/msglog.cpp @@ -449,7 +449,6 @@ void CSrmmWindow::StreamInEvents(MEVENT hDbEventFirst, int count, bool bAppend) if (bottomScroll) { sel.cpMin = sel.cpMax = -1; m_log.SendMsg(EM_EXSETSEL, 0, (LPARAM)&sel); - ScrollToBottom(); } else { m_log.SendMsg(EM_EXSETSEL, 0, (LPARAM)&oldSel); @@ -478,8 +477,10 @@ void CSrmmWindow::StreamInEvents(MEVENT hDbEventFirst, int count, bool bAppend) } m_log.SendMsg(WM_SETREDRAW, TRUE, 0); - if (bottomScroll) + if (bottomScroll) { + ScrollToBottom(); RedrawWindow(m_log.GetHwnd(), nullptr, nullptr, RDW_INVALIDATE | RDW_UPDATENOW); + } m_hDbEventLast = streamData.hDbEventLast; } -- cgit v1.2.3