fix for a crash in ~wxFontList

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2000-12-19 13:52:57 +00:00
parent deb63b954b
commit dda88f5eee
3 changed files with 2 additions and 8 deletions

View File

@ -451,7 +451,7 @@ void MyFrame::DoResizeFont(int diff)
void MyFrame::DoChangeFont(const wxFont& font, const wxColour& col)
{
Resize(GetSize(), font);
Resize(GetClientSize(), font);
m_canvas->SetTextFont(font);
if ( col.Ok() )
@ -610,9 +610,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
void MyFrame::OnSize(wxSizeEvent& event)
{
wxSize size = event.GetSize();
Resize(size);
Resize(GetClientSize());
event.Skip();
}

View File

@ -201,8 +201,6 @@ bool wxFont::Create( int pointSize,
bool wxFont::Create(const wxString& fontname, wxFontEncoding enc)
{
Init();
if( !fontname )
{
*this = wxSystemSettings::GetSystemFont( wxSYS_DEFAULT_GUI_FONT);

View File

@ -201,8 +201,6 @@ bool wxFont::Create( int pointSize,
bool wxFont::Create(const wxString& fontname, wxFontEncoding enc)
{
Init();
if( !fontname )
{
*this = wxSystemSettings::GetSystemFont( wxSYS_DEFAULT_GUI_FONT);