summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-08-25 17:45:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-08-25 17:45:12 +0300
commit8d7130f350d4262caaf9484a9ef1e573997b822e (patch)
treebabdca09a38494bda1bee5c0decf4081a62df444 /plugins/TabSRMM
parentb13d2bacea4d260145eaa13541fcc1e39a4bfc9f (diff)
tabSRMM: fix for broken status change messages drawing
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index 8318a707eb..86706792ba 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -1274,12 +1274,12 @@ void CLogWindow::LogEvents(MEVENT hDbEventFirst, int count, bool fAppend, DBEVEN
m_pDlg.m_hDbEventLast = streamData.hDbEventLast;
- if (dbei_s || m_pDlg.m_bRtlText)
+ if (m_pDlg.m_bRtlText)
m_rtf.SendMsg(EM_SETBKGNDCOLOR, 0, (LOWORD(m_pDlg.m_iLastEventType) & DBEF_SENT)
? (fAppend ? m_pDlg.m_pContainer->m_theme.outbg : m_pDlg.m_pContainer->m_theme.oldoutbg)
: (fAppend ? m_pDlg.m_pContainer->m_theme.inbg : m_pDlg.m_pContainer->m_theme.oldinbg));
- if (!m_pDlg.m_bRtlText) {
+ if (!dbei_s && !m_pDlg.m_bRtlText) {
GETTEXTLENGTHEX gtxl = { 0 };
gtxl.codepage = 1200;
gtxl.flags = GTL_DEFAULT | GTL_PRECISE | GTL_NUMCHARS;
@@ -1288,9 +1288,7 @@ void CLogWindow::LogEvents(MEVENT hDbEventFirst, int count, bool fAppend, DBEVEN
sel.cpMin = sel.cpMax - 1;
m_rtf.SendMsg(EM_EXSETSEL, 0, (LPARAM)&sel);
m_rtf.SendMsg(EM_REPLACESEL, FALSE, (LPARAM)L"");
-
- if (!dbei_s)
- m_pDlg.m_bLastParaDeleted = true;
+ m_pDlg.m_bLastParaDeleted = true;
}
BOOL isSent;