X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82e5f91bffab96d859244bdc2f53b7c6163d0b40..643a0828dac932568e143b16b63a1cac0cd7d588:/src/univ/winuniv.cpp diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index f3bb6be5c0..3d4292e5c3 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -6,7 +6,7 @@ // Created: 06.08.00 // RCS-ID: $Id$ // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // =========================================================================== @@ -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();