picking the selected font before closing the panel, fixes #16538

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2014-09-10 07:17:31 +00:00
parent 3ade92601d
commit d00d130ebd

View File

@ -198,14 +198,14 @@ int RunMixedFontDialog(wxFontDialog* dialog)
if( FPIsFontPanelVisible())
FPShowHideFontPanel() ;
#else
// we must pick the selection before closing, otherwise a native textcontrol interferes
NSFont* theFont = [fontPanel panelConvertFont:[NSFont userFontOfSize:0]];
[fontPanel close];
#endif
if ( [accessoryView closedWithOk])
{
#if wxOSX_USE_COCOA
NSFont* theFont = [fontPanel panelConvertFont:[NSFont userFontOfSize:0]];
fontdata.m_chosenFont = wxFont( theFont );
//Get the shared color panel along with the chosen color and set the chosen color