X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f52c3131bff35b58e62c6696db4312b90d8c2102..222702b112dcc7bebe018d6f4d66fe469fefd02c:/src/univ/winuniv.cpp diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index 80c245fe45..8c8a4f17cf 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -316,7 +316,7 @@ bool wxWindow::DoDrawBackground(wxDC& dc) rect.height = size.y; wxWindow * const parent = GetParent(); - if ( HasTransparentBackground() && parent && parent->ProvidesBackground() ) + if ( HasTransparentBackground() && parent ) { wxASSERT( !IsTopLevel() );