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:
Vadim Zeitlin
2005-02-28 01:06:48 +00:00
parent fcae713511
commit cd5e74bad9
2 changed files with 2 additions and 6 deletions

View File

@@ -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;