From f5cba0b9bffe81ff9ca517253e96ea810f2c319d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Dec 2017 20:15:18 +0300 Subject: fix for a quirk in a group chat entry field --- plugins/TabSRMM/src/msgdlgutils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM') 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"); } -- cgit v1.2.3