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
This commit is contained in:
Vadim Zeitlin
2000-10-20 14:39:18 +00:00
parent 0104114590
commit 820f05f0c5

View File

@@ -447,7 +447,7 @@ wxFontEncoding wxFontMapper::CharsetToEncoding(const wxString& charset,
{ {
value -= 1250; value -= 1250;
if ( value < wxFONTENCODING_CP12_MAX - if ( value < wxFONTENCODING_CP12_MAX -
wxFONTENCODING_CP1250 - 1 ) wxFONTENCODING_CP1250 )
{ {
// a valid Windows code page // a valid Windows code page
value += wxFONTENCODING_CP1250; value += wxFONTENCODING_CP1250;