X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/346d8899f312739ffe0cca64bb0538ecdb34dcdf..d2b23b67301bd2d286366d4326a21da3132558fa:/src/univ/winuniv.cpp diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index 6a03329594..90bb87c58f 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -359,7 +359,7 @@ bool wxWindow::DoDrawBackground(wxDC& dc) rect.height = size.y; wxWindow * const parent = GetParent(); - if ( HasTransparentBackground() && parent ) + if ( HasTransparentBackground() && !UseBgCol() && parent ) { wxASSERT( !IsTopLevel() );