Applied patch [ 816021 ] SetFont without m_widget

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-12-11 08:06:08 +00:00
parent 3fc93ebd18
commit 133fb2a3a0
2 changed files with 2 additions and 6 deletions

View File

@@ -4281,9 +4281,7 @@ bool wxWindowGTK::IsOwnGtkWindow( GdkWindow *window )
bool wxWindowGTK::SetFont( const wxFont &font ) bool wxWindowGTK::SetFont( const wxFont &font )
{ {
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid window") ); if (!wxWindowBase::SetFont(font) || !m_widget)
if (!wxWindowBase::SetFont(font))
{ {
return FALSE; return FALSE;
} }

View File

@@ -4281,9 +4281,7 @@ bool wxWindowGTK::IsOwnGtkWindow( GdkWindow *window )
bool wxWindowGTK::SetFont( const wxFont &font ) bool wxWindowGTK::SetFont( const wxFont &font )
{ {
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid window") ); if (!wxWindowBase::SetFont(font) || !m_widget)
if (!wxWindowBase::SetFont(font))
{ {
return FALSE; return FALSE;
} }