X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82d0e7fe66384347c147ce58c6276c1033ebe04d..72366f68d1036084d1adc5971eeee4885f36fe5c:/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() ) {