X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80a24267cbc17d85e278e1f10cdfdaea12199639..4a377e137527eb7f4a26b9e3bc1cd88e8c108676:/src/common/fontmap.cpp diff --git a/src/common/fontmap.cpp b/src/common/fontmap.cpp index ac8a9e9b67..d8390e983b 100644 --- a/src/common/fontmap.cpp +++ b/src/common/fontmap.cpp @@ -42,6 +42,7 @@ #endif #if wxUSE_GUI + #include "wx/fontutil.h" #include "wx/msgdlg.h" #include "wx/fontdlg.h" #include "wx/choicdlg.h" @@ -447,7 +448,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; @@ -685,10 +686,10 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding, wxFont font = retData.GetChosenFont(); *info = retData.EncodingInfo(); - info -> encoding = retData.GetEncoding(); + info->encoding = retData.GetEncoding(); #if wxUSE_CONFIG - // remember this in the config + // remember this in the config if ( ChangePath(FONTMAPPER_FONT_FROM_ENCODING_PATH, &pathOld) ) { GetConfig()->Write(configEntry, info->ToString());