From 09f4b036f30b902d798f76e919abaa1510f065f2 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sun, 20 Jan 2008 17:41:56 +0000 Subject: [PATCH] Prevents double transcoding --- golded3/geline.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/golded3/geline.cpp b/golded3/geline.cpp index 3e0a56f..2393565 100644 --- a/golded3/geline.cpp +++ b/golded3/geline.cpp @@ -1912,7 +1912,7 @@ char* XlatStr(char* dest, const char* src, int level, Chs* chrtbl, int qpencoded else #endif - if (chrs) + if ((level < 0) && chrs) { tptr = (char*)chrs[(byte)dochar]; clen = *tptr++; @@ -2127,7 +2127,7 @@ void MakeLineIndex(GMsg* msg, int margin, bool getvalue, bool header_recode) { // Insert previous quotestring for(n=0; n 0) && ChsTP) { tptr = (char*)ChsTP[(byte)(*qptr++)]; chln = *tptr++; @@ -2603,7 +2603,7 @@ void MakeLineIndex(GMsg* msg, int margin, bool getvalue, bool header_recode) { defaultchardo: dochar = *ptr++; chardo: - if (ChsTP) + if ((level > 0) && ChsTP) { tptr = (char*)ChsTP[(byte)dochar]; chln = *tptr++;