diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-20 20:15:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-20 20:15:18 +0300 |
commit | f5cba0b9bffe81ff9ca517253e96ea810f2c319d (patch) | |
tree | b382c25a7c769c81716120b3fc0cb2c9a17f0494 /plugins | |
parent | 4c816da90e153039fa3deebe30f443cbe7bc88d5 (diff) |
fix for a quirk in a group chat entry field
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index 920bf14be9..125f6c140b 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -887,8 +887,10 @@ BOOL CTabBaseDlg::DoRtfToTags(CMStringW &pszText) const if (iCol > 0) {
if (isChat()) {
if (mi && mi->bColor) {
- if (iInd >= 0)
- res.AppendFormat(L"%%c%u", iInd);
+ if (iInd >= 0) {
+ if (!(res.IsEmpty() && m_pContainer->theme.fontColors[MSGFONTID_MESSAGEAREA] == pColors[iInd]))
+ res.AppendFormat(L"%%c%u", iInd);
+ }
else if (!res.IsEmpty())
res.Append(L"%%C");
}
|