X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0aa1258a1b2bf2323c65fc0264c51ebf1dd067a8..b77b87881bae2e6306366d79e7fe160334b3d4a2:/src/gtk/font.cpp?ds=sidebyside diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index f62f55b840..eef97f198b 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/font.cpp @@ -790,7 +790,7 @@ bool wxFont::GetNoAntiAliasing() return M_FONTDATA->m_noAA; } -wxNativeFontInfo *wxFont::GetNativeFontInfo() const +const wxNativeFontInfo *wxFont::GetNativeFontInfo() const { wxCHECK_MSG( Ok(), (wxNativeFontInfo *)NULL, wxT("invalid font") ); @@ -799,7 +799,7 @@ wxNativeFontInfo *wxFont::GetNativeFontInfo() const GetInternalFont(); #endif - return new wxNativeFontInfo(M_FONTDATA->m_nativeFontInfo); + return &(M_FONTDATA->m_nativeFontInfo); } bool wxFont::IsFixedWidth() const