X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/15d5a9470be940a5bac66181a9e4c27d47d56558..9fd9e47a93dfcdd99c2722e288a0f28a51ce6f5f:/src/unix/fontutil.cpp diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index c4879e8930..9501ea5ee7 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -425,7 +425,7 @@ wxNativeFont wxLoadQueryNearestFont(int pointSize, !wxTestFontEncoding(info) ) { #if wxUSE_FONTMAP - if ( !wxTheFontMapper->GetAltForEncoding(encoding, &info) ) + if ( !wxFontMapper::Get()->GetAltForEncoding(encoding, &info) ) #endif // wxUSE_FONTMAP { // unspported encoding - replace it with the default @@ -841,7 +841,7 @@ static wxNativeFont wxLoadQueryFont(int pointSize, // if pointSize is -1, don't specify any wxString sizeSpec; - if ( fontSpec == -1 ) + if ( pointSize == -1 ) { sizeSpec = _T('*'); }