git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59780
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxWindowGTK::Refresh(bool WXUNUSED(eraseBackground),
const wxRect *rect)
{
void wxWindowGTK::Refresh(bool WXUNUSED(eraseBackground),
const wxRect *rect)
{
- wxCHECK_RET( (m_widget != NULL), wxT("invalid window") );
+ if ( !m_widget )
+ {
+ // it is valid to call Refresh() for a window which hasn't been created
+ // yet, it simply doesn't do anything in this case
+ return;
+ }