From 3859e4cd13fd6de47e609dcac72a03d41b4b9dc0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 14 Aug 2023 15:46:05 +0300 Subject: code simplification --- src/mir_app/src/srmm_log_rtf.cpp | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3