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
This commit is contained in:
@@ -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++ )
|
||||
{
|
||||
|
Reference in New Issue
Block a user