]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/font.cpp
update the selection properly after deleting the page
[wxWidgets.git] / src / gtk / font.cpp
index f62f55b84075f1122ecf561b519a0cb332b40016..eef97f198b6735ff8e99a500af5868ee8cf8e371 100644 (file)
@@ -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