wxUniv compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3982,9 +3982,7 @@ void wxWindowGTK::GtkSendPaintEvents()
|
||||
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM))
|
||||
{
|
||||
// find ancestor from which to steal background
|
||||
wxWindow *parent = IsTopLevel() ? this : GetParent();
|
||||
while (parent && !parent->IsTopLevel())
|
||||
parent = parent->GetParent();
|
||||
wxWindow *parent = wxGetTopLevelParent((wxWindow *)this);
|
||||
if (!parent)
|
||||
parent = (wxWindow*)this;
|
||||
|
||||
|
Reference in New Issue
Block a user