fixed off by 1 error in CharsetToEncoding() for CP encodings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-10-20 14:39:18 +00:00
parent e55ff14df0
commit 1a184fd470

View File

@@ -451,7 +451,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;