]> git.saurik.com Git - wxWidgets.git/commitdiff
guard against not-yet-existing font, fixes #14516
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 24 Jul 2012 05:58:19 +0000 (05:58 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 24 Jul 2012 05:58:19 +0000 (05:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/font.cpp

index a0a345c38f3c7add90a5b6cb4c2bc867d6c8c4ac..634453ec6a335b4e4c4b034ceff938301ba91a56 100644 (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();