From 333a6456b96c38d0d7d1976d94bb2cc255850da1 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 3 Apr 2003 10:20:46 +0000 Subject: [PATCH] Fixed the wxX11 crash bug on opening a dialog that has a parent, by only refreshing subwindows that are not top level windows. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/winuniv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.45.2