X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82d0e7fe66384347c147ce58c6276c1033ebe04d..1cb311851d96ed4fb5290c65455075c6989f7142:/src/common/fontcmn.cpp diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index 7c093918c5..f83bb4701f 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -671,7 +671,10 @@ bool wxNativeFontInfo::FromUserString(const wxString& s) wxString face; unsigned long size; - bool weightfound = false, pointsizefound = false, encodingfound = false; + bool weightfound = false, pointsizefound = false; +#if wxUSE_FONTMAP + bool encodingfound = false; +#endif while ( tokenizer.HasMoreTokens() ) {