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:
Stefan Csomor
2012-07-24 05:58:19 +00:00
parent fecb60c3ed
commit 6abe329feb

View File

@@ -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();