diff options
author | George Hazan <george.hazan@gmail.com> | 2015-02-26 13:56:36 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-02-26 13:56:36 +0000 |
commit | b3f693c28e8574cdb99916cb417d14d238d60ca2 (patch) | |
tree | ed6dd2c21a7a368145163c8fba2d9c7d8813b103 /plugins/TabSRMM/src/msgdlgutils.cpp | |
parent | 5fd72266f7483bb586679fd0ef98be526b03729b (diff) |
some rtf glitches
git-svn-id: http://svn.miranda-ng.org/main/trunk@12272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index 7d78092e7e..9d7e81d12e 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -925,7 +925,7 @@ BOOL TSAPI DoRtfToTags(const TWindowData *dat, CMString &pszText, int iNumColors int iCol = _ttoi(p + 3);
int iInd = GetRtfIndex(iCol, iNumColors, pIndex);
- if (iCol)
+ if (iCol && dat->bType != SESSIONTYPE_CHAT)
res.AppendFormat((iInd > 0) ? (bInsideColor ? _T("[/color][color=%s]") : _T("[color=%s]")) : (bInsideColor ? _T("[/color]") : _T("")), Utils::rtf_ctable[iInd - 1].szName);
bInsideColor = iInd > 0;
@@ -1024,6 +1024,11 @@ BOOL TSAPI DoRtfToTags(const TWindowData *dat, CMString &pszText, int iNumColors }
}
+ if (bInsideColor && dat->bType != SESSIONTYPE_CHAT)
+ res.Append(_T("[/color]"));
+ if (bInsideUl)
+ res.Append(_T("[/u]"));
+
pszText = res;
return TRUE;
}
|