X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f428e6c50f749df492da3d4667c0d457c7863e75..9a35701127e3e8d2c7fb433d85c7b3954ccbfc9f:/src/common/fontmap.cpp diff --git a/src/common/fontmap.cpp b/src/common/fontmap.cpp index 7d4b57ff19..a30c4f14bb 100644 --- a/src/common/fontmap.cpp +++ b/src/common/fontmap.cpp @@ -316,7 +316,7 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding, wxString configEntry, encName = GetEncodingName(encoding); - if ( !!facename ) + if ( !facename.IsEmpty() ) { configEntry = facename + _T("_"); } @@ -340,13 +340,13 @@ bool wxFontMapper::GetAltForEncoding(wxFontEncoding encoding, } else // use the info entered the last time { - if ( !!fontinfo && !!facename ) + if ( !fontinfo.IsEmpty() && !facename.IsEmpty() ) { // we tried to find a match with facename -- now try without it fontinfo = GetConfig()->Read(encName); } - if ( !!fontinfo ) + if ( !fontinfo.IsEmpty() ) { if ( info->FromString(fontinfo) ) {