From 820f05f0c52910cce717862fa78d5f4b15546565 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 20 Oct 2000 14:39:18 +0000 Subject: [PATCH 1/1] fixed off by 1 error in CharsetToEncoding() for CP encodings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fontmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fontmap.cpp b/src/common/fontmap.cpp index ac8a9e9b67..7e76472727 100644 --- a/src/common/fontmap.cpp +++ b/src/common/fontmap.cpp @@ -447,7 +447,7 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset, { value -= 1250; if ( value < wxFONTENCODING_CP12_MAX - - wxFONTENCODING_CP1250 - 1 ) + wxFONTENCODING_CP1250 ) { // a valid Windows code page value += wxFONTENCODING_CP1250; -- 2.45.2