From 8429fd0229577fb231f4b6a004c0517288874d98 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 12 Oct 2018 23:29:02 +0200 Subject: [PATCH] Don't explicitly refresh entire wxPropertyGrid while refreshing wxPropertyGridManager wxPG is a child of wxPGManager and is refreshed automatically when updated region of wxPGManager contains wxPG window. --- src/propgrid/manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index 67edffed93..0f6e3bd17c 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -1454,8 +1454,7 @@ void wxPropertyGridManager::OnPaint( wxPaintEvent& WXUNUSED(event) ) void wxPropertyGridManager::Refresh(bool eraseBackground, const wxRect* rect ) { - m_pPropGrid->Refresh(eraseBackground); - wxWindow::Refresh(eraseBackground,rect); + wxPanel::Refresh(eraseBackground, rect); } // -----------------------------------------------------------------------