diff options
author | George Hazan <ghazan@miranda.im> | 2018-06-13 22:08:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-06-13 22:08:29 +0300 |
commit | 734a0c2ce025703b6ad29469ec21c0545a0905ae (patch) | |
tree | f4388f04d332cb73a4f05ea5205d8726dbfcc864 /src/core | |
parent | f5ad379cdf9f65700745114fcb8d692260ca6015 (diff) |
StdMsg: ScrollToBottom should be called after applying smileys
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdmsg/src/msglog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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;
}
|