X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aa89a22b8e47000c98bff05c6f545f331f1c353..643a0828dac932568e143b16b63a1cac0cd7d588:/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();