summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-20 20:15:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-20 20:15:18 +0300
commitf5cba0b9bffe81ff9ca517253e96ea810f2c319d (patch)
treeb382c25a7c769c81716120b3fc0cb2c9a17f0494 /plugins
parent4c816da90e153039fa3deebe30f443cbe7bc88d5 (diff)
fix for a quirk in a group chat entry field
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp6
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");
}