]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed off by 1 error in CharsetToEncoding() for CP encodings
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 Oct 2000 14:39:18 +0000 (14:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 Oct 2000 14:39:18 +0000 (14:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontmap.cpp

index ac8a9e9b67d9587cb6312e58304fdf6a62e91145..7e76472727bcfd76985b0c6f3798e59b6296b1fc 100644 (file)
@@ -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;