diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-11 17:49:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-11 17:49:41 +0300 |
commit | eb891ac9d8974b650d211cd3045cc582550a3fc3 (patch) | |
tree | 4a75dccda47bd3f53c07c3a954801ba437d343c4 /src | |
parent | 8f9292d483fcf3a10d9284512359c4562f5311eb (diff) |
StdMsg: fix for logging events
Diffstat (limited to 'src')
-rw-r--r-- | src/core/stdmsg/src/msglog.cpp | 2 | ||||
-rw-r--r-- | src/mir_app/src/srmm_log_rtf.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdmsg/src/msglog.cpp b/src/core/stdmsg/src/msglog.cpp index 290c8ad77e..a105a2fe53 100644 --- a/src/core/stdmsg/src/msglog.cpp +++ b/src/core/stdmsg/src/msglog.cpp @@ -528,7 +528,7 @@ void CLogWindow::LogEvents(MEVENT hDbEventFirst, int count, bool bAppend) }
m_rtf.SetDraw(true);
- if (bottomScroll) {
+ if (bottomScroll || AtBottom()) {
ScrollToBottom();
RedrawWindow(m_rtf.GetHwnd(), nullptr, nullptr, RDW_INVALIDATE | RDW_UPDATENOW);
}
diff --git a/src/mir_app/src/srmm_log_rtf.cpp b/src/mir_app/src/srmm_log_rtf.cpp index 14112511c4..fd1279ec39 100644 --- a/src/mir_app/src/srmm_log_rtf.cpp +++ b/src/mir_app/src/srmm_log_rtf.cpp @@ -71,7 +71,7 @@ void CRtfLogWindow::Detach() bool CRtfLogWindow::AtBottom()
{
if (!(GetWindowLongPtr(m_rtf.GetHwnd(), GWL_STYLE) & WS_VSCROLL))
- return false;
+ return true;
SCROLLINFO si = {};
si.cbSize = sizeof(si);
|