diff options
author | George Hazan <ghazan@miranda.im> | 2021-03-13 21:04:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-03-13 21:04:06 +0300 |
commit | ac564ac196f8605f5cc8de588ed736109ab60cc8 (patch) | |
tree | c02007d831da61408513d6cc9d646f5a94d6b918 /plugins/TabSRMM | |
parent | 768aa5fbe8f766d2a654f301f37d4fd46b520ca5 (diff) |
fixes #2742 (TabSRMM: съезжает предпросмотр шаблона)
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/msglog.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp index fdd3b376f2..37865e6ce2 100644 --- a/plugins/TabSRMM/src/msglog.cpp +++ b/plugins/TabSRMM/src/msglog.cpp @@ -987,7 +987,10 @@ static char* Template_CreateRTFFromDbEvent(CMsgDialog *dat, MCONTACT hContact, M else i += 2;
}
else {
- str.AppendFormat("{\\uc1\\u%d?}", (int)ci);
+ if (ci >= 32 && ci < 128)
+ str.AppendChar(ci);
+ else
+ str.AppendFormat("{\\uc1\\u%d?}", (int)ci);
i++;
}
}
@@ -1278,7 +1281,7 @@ void CLogWindow::LogEvents(MEVENT hDbEventFirst, int count, bool fAppend, DBEVEN ? (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_isAutoRTL & 1)) {
+ if (!dbei_s && !(m_pDlg.m_isAutoRTL & 1)) {
GETTEXTLENGTHEX gtxl = { 0 };
gtxl.codepage = 1200;
gtxl.flags = GTL_DEFAULT | GTL_PRECISE | GTL_NUMCHARS;
|