recall initial font

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-09-26 17:22:30 +00:00
parent c0a6772a75
commit f569809660

View 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)
{