X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0aa1258a1b2bf2323c65fc0264c51ebf1dd067a8..e3f9e20cb15c62bd347a8e52d2d36529adbdb3d6:/src/gtk1/font.cpp diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index f62f55b840..eef97f198b 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/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