From 19274603a95c8d61d436c80fb48afc6fb9296f10 Mon Sep 17 00:00:00 2001 From: Ianos Gnatiuc Date: Mon, 31 Oct 2005 12:55:02 +0000 Subject: [PATCH] LatinToLocal optimization --- golded3/geline.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/golded3/geline.cpp b/golded3/geline.cpp index 47221d5..2965844 100644 --- a/golded3/geline.cpp +++ b/golded3/geline.cpp @@ -1706,18 +1706,9 @@ void Latin2Local(char *str) xch = CFG->latintolocal[chr]; if (xch && (xch != chr)) - { - left = j ? str[j-1] : 0; - right = str[j+1]; - - if (((left >= 0x80) && (toupper(left) != tolower(left))) || - ((right >= 0x80) && (toupper(right) != tolower(right)))) - { - str[j] = xch; - } - else - break; - } + str[j] = xch; + else + break; } } }