]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/fontdlg.cpp
Compile fixes.
[wxWidgets.git] / src / mac / carbon / fontdlg.cpp
index 96a5121bfabd62d0742a0dc7f1247733dec05625..5fafc36dbf2d00ce28a48ba8b0be1da4d719d301 100644 (file)
@@ -197,6 +197,11 @@ int wxFontDialog::ShowModal()
     status = ATSUDisposeStyle(theStyle);
     check_noerr(status);
     
+    //in case the user doesn't choose anything -
+    //if he doesn't we'll get a bad font with red text
+    m_fontData.SetChosenFont(m_fontData.GetInitialFont());
+    m_fontData.SetColour(wxColour(0,0,0));
+    
     //finally, show the font dialog
     if( (status = FPShowHideFontPanel()) == noErr)
     {