guard against not-yet-existing font, fixes #14516
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -667,7 +667,7 @@ wxGDIRefData *wxFont::CloneGDIRefData(const wxGDIRefData *data) const
|
||||
|
||||
void wxFont::SetPointSize(int pointSize)
|
||||
{
|
||||
if ( M_FONTDATA->GetPointSize() == pointSize )
|
||||
if ( M_FONTDATA != NULL && M_FONTDATA->GetPointSize() == pointSize )
|
||||
return;
|
||||
|
||||
AllocExclusive();
|
||||
|
Reference in New Issue
Block a user