X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..c3952f6524b5827420836f856ef2074f20e72849:/src/generic/panelg.cpp diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index 346a2c82e6..3052aabd7b 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -74,15 +74,7 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id, long style, const wxString& name) { - bool ret = wxWindow::Create(parent, id, pos, size, style, name); - - if ( ret ) - { - SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE)); - SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT)); - } - - return ret; + return wxWindow::Create(parent, id, pos, size, style, name); } // ---------------------------------------------------------------------------- @@ -353,6 +345,8 @@ bool wxPanel::SetFocusToChild() bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused) { + wxCHECK_MSG( win, FALSE, _T("wxSetFocusToChild(): invalid window") ); + if ( *childLastFocused ) { // It might happen that the window got reparented or no longer accepts