X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f1c40652a0c2d6752c57df1b8aed22fae7e118dd..47e175a24f862aa8b7ca7dd4a2bb5957991e7f2d:/src/osx/carbon/gdiobj.cpp?ds=sidebyside diff --git a/src/osx/carbon/gdiobj.cpp b/src/osx/carbon/gdiobj.cpp index 31ec9c8017..4a7a3db352 100644 --- a/src/osx/carbon/gdiobj.cpp +++ b/src/osx/carbon/gdiobj.cpp @@ -59,12 +59,10 @@ const wxFont* wxStockGDIMac::GetFont(Item item) switch (item) { case FONT_NORMAL: - font = new wxFont; - font->CreateSystemFont(wxOSX_SYSTEM_FONT_NORMAL); + font = new wxFont(wxOSX_SYSTEM_FONT_NORMAL); break; case FONT_SMALL: - font = new wxFont; - font->CreateSystemFont(wxOSX_SYSTEM_FONT_SMALL); + font = new wxFont(wxOSX_SYSTEM_FONT_SMALL); break; default: font = const_cast(super::GetFont(item));