X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aa89a22b8e47000c98bff05c6f545f331f1c353..98ea6b7d6ac3f9d0a60af43e45a618ff6d9fa12e:/src/univ/winuniv.cpp diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index a3e50aa7dd..3d4292e5c3 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -399,7 +399,7 @@ void wxWindow::Refresh(bool eraseBackground, const wxRect *rectClient) wxWindow *win = node->GetData(); // Only refresh sub controls when it is visible // and when it is in the update region. - if(win->IsShown() && wxRegion(rectWin).Contains(win->GetRect()) != wxOutRegion) + if(!win->IsKindOf(CLASSINFO(wxTopLevelWindow)) && win->IsShown() && wxRegion(rectWin).Contains(win->GetRect()) != wxOutRegion) win->Refresh(eraseBackground, &rectWin); node = node->GetNext();