mirror of
https://github.com/audacity/wxWidgets.git
synced 2025-12-10 03:58:56 -06:00
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:
parent
3ade92601d
commit
d00d130ebd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user