git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52247
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (bgColor == wxNullColour)
bgColor = listBgColor;
if (bgColor == wxNullColour)
bgColor = listBgColor;
- wxFont listFont = list->GetFont();
- if (font == wxNullFont)
- font = listFont;
+ if (!font.Ok())
+ font = list->GetFont();
wxCFStringRef cfString( text, wxLocale::GetSystemEncoding() );
wxCFStringRef cfString( text, wxLocale::GetSystemEncoding() );
- if (font.GetFamily() != wxFONTFAMILY_DEFAULT)
- info.fontID = font.MacGetThemeFontID();
+ info.fontID = font.MacGetThemeFontID();
::TextSize( (short)(font.MacGetFontSize()) ) ;
::TextFace( font.MacGetFontStyle() ) ;
::TextSize( (short)(font.MacGetFontSize()) ) ;
::TextFace( font.MacGetFontStyle() ) ;