Fix D2D wxGraphics build with wxUSE_UNICODE==0
Revert one of the changes of 5520702674
which
replaced direct check with a call to lstrlen() which seems to be unneeded and
doesn't compile in non-Unicode build.
This commit is contained in:
parent
30369f03ae
commit
b8f83725ed
@ -2614,7 +2614,7 @@ wxD2DFontData::wxD2DFontData(wxGraphicsRenderer* renderer, ID2D1Factory* d2dFact
|
||||
wxCHECK_RET( n > 0, wxS("Failed to obtain font info") );
|
||||
|
||||
// Ensure the LOGFONT object contains the correct font face name
|
||||
if (lstrlen(logfont.lfFaceName) == 0)
|
||||
if (logfont.lfFaceName[0] == L'\0')
|
||||
{
|
||||
// The length of the font name must not exceed LF_FACESIZE TCHARs,
|
||||
// including the terminating NULL.
|
||||
|
Loading…
Reference in New Issue
Block a user