From 1cef1d91e519481d58268b825d5173b43065781e Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Tue, 26 Aug 2014 22:58:39 +0000 Subject: [PATCH] Fix deleting (from within wxPG event handler) properties not belonging to the current PG page. Currently, it is not possible to remove properties from the page other then currently selected. The scope of iterator used in wxPropertyGridPageState::DoClear() to enumerate properties must be limited to the required page and not always to the selected one. Closes #16459 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/propgridpagestate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/propgridpagestate.cpp b/src/propgrid/propgridpagestate.cpp index 91a402f922..252f90a7ee 100644 --- a/src/propgrid/propgridpagestate.cpp +++ b/src/propgrid/propgridpagestate.cpp @@ -291,7 +291,7 @@ void wxPropertyGridPageState::DoClear() if ( m_pPropGrid && m_pPropGrid->m_processedEvent ) { wxPropertyGridIterator it; - for ( it = m_pPropGrid->GetIterator(wxPG_ITERATE_ALL); + for ( it = wxPropertyGridIterator(this, wxPG_ITERATE_ALL, wxNullProperty); !it.AtEnd(); it++ ) {