From d67f238b33aa9fae3e877dc579ac9260323219fe Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 19 Mar 2014 16:51:56 +0000 Subject: fix for printing %c0 in StdChat git-svn-id: http://svn.miranda-ng.org/main/trunk@8663 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdchat/src/message.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/core/stdchat/src/message.cpp b/src/core/stdchat/src/message.cpp index 0d88ce47f5..bcd066e4a9 100644 --- a/src/core/stdchat/src/message.cpp +++ b/src/core/stdchat/src/message.cpp @@ -120,8 +120,8 @@ TCHAR* DoRtfToTags(char* pszText, SESSION_INFO *si) iInd = RTFColorToIndex(pIndex, iCol, si); bJustRemovedRTF = TRUE; - if (bTextHasStarted || iInd >= 0) - mir_snprintf(InsertThis, SIZEOF(InsertThis), (iInd >= 0) ? "%%c%02u" : "%%C", iInd); +// if (bTextHasStarted || iInd >= 0) +// mir_snprintf(InsertThis, SIZEOF(InsertThis), (iInd >= 0) ? "%%c%02u" : "%%C", iInd); } else if (!memcmp(p1, "\\highlight", 10)) { //background color int iCol, iInd; @@ -129,8 +129,8 @@ TCHAR* DoRtfToTags(char* pszText, SESSION_INFO *si) iInd = RTFColorToIndex(pIndex, iCol, si); bJustRemovedRTF = TRUE; - if (bTextHasStarted || iInd >= 0) - mir_snprintf(InsertThis, SIZEOF(InsertThis), (iInd >= 0) ? "%%f%02u" : "%%F", iInd); +// if (bTextHasStarted || iInd >= 0) +// mir_snprintf(InsertThis, SIZEOF(InsertThis), (iInd >= 0) ? "%%f%02u" : "%%F", iInd); } else if (!memcmp(p1, "\\lang", 5)) { // language id bTextHasStarted = bJustRemovedRTF = TRUE; -- cgit v1.2.3