summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-14 15:46:05 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-14 15:46:05 +0300
commit3859e4cd13fd6de47e609dcac72a03d41b4b9dc0 (patch)
tree73b63e4b55fd9d80f4b9aaed412cd2701e83c130
parentec7b698640006863ee289c73f7bd3bf2590be32f (diff)
code simplification
-rw-r--r--src/mir_app/src/srmm_log_rtf.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mir_app/src/srmm_log_rtf.cpp b/src/mir_app/src/srmm_log_rtf.cpp
index 83d6166e27..64326673f4 100644
--- a/src/mir_app/src/srmm_log_rtf.cpp
+++ b/src/mir_app/src/srmm_log_rtf.cpp
@@ -282,9 +282,7 @@ INT_PTR CRtfLogWindow::Notify(WPARAM, LPARAM lParam)
void CRtfLogWindow::Resize()
{
- bool bottomScroll = !m_pDlg.isChat();
- if (AtBottom())
- bottomScroll = true;
+ bool bottomScroll = m_pDlg.isChat() ? AtBottom() : true;
// ::MoveWindow(m_rtf.GetHwnd(), x, y, cx, cy, true);