From 1b895132c960415872de82c1d47589b6b55cecee Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 13 Oct 2008 10:52:38 +0000 Subject: [PATCH] Correct spelling, now use Indices git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/propgrid/property.h | 2 +- src/propgrid/property.cpp | 4 ++-- src/propgrid/propgridpagestate.cpp | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 4037e14b1d..438fc602f3 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -1914,7 +1914,7 @@ public: void Empty(); // Puts correct indexes to children - void FixIndecesOfChildren( unsigned int starthere = 0 ); + void FixIndicesOfChildren( unsigned int starthere = 0 ); #ifndef SWIG // Returns wxPropertyGridPageState in which this property resides. diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index d8cdd2c5e3..c61db4bc16 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -1561,7 +1561,7 @@ void wxPGProperty::AddChild2( wxPGProperty* prop, int index, bool correct_mode ) else { m_children.insert( m_children.begin()+index, prop); - if ( correct_mode ) FixIndecesOfChildren( index ); + if ( correct_mode ) FixIndicesOfChildren( index ); } prop->m_parent = this; @@ -1651,7 +1651,7 @@ void wxPGProperty::AdaptListToValue( wxVariant& list, wxVariant* value ) const } -void wxPGProperty::FixIndecesOfChildren( unsigned int starthere ) +void wxPGProperty::FixIndicesOfChildren( unsigned int starthere ) { size_t i; for ( i=starthere;iFixIndecesOfChildren(); + pwc->FixIndicesOfChildren(); } @@ -1826,7 +1826,7 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item ) } if ( IsInNonCatMode() ) - m_abcArray->FixIndecesOfChildren(); + m_abcArray->FixIndicesOfChildren(); } } @@ -1844,7 +1844,7 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item ) // categorized mode - categorized array wxArrayPGProperty& parentsChildren = item->m_parent->m_children; parentsChildren.erase( parentsChildren.begin() + indinparent ); - item->m_parent->FixIndecesOfChildren(); + item->m_parent->FixIndicesOfChildren(); } else { @@ -1877,7 +1877,7 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item ) wxASSERT( item->m_parent == m_abcArray ); wxArrayPGProperty& parentsChildren = item->m_parent->m_children; parentsChildren.erase(parentsChildren.begin() + indinparent); - item->m_parent->FixIndecesOfChildren(indinparent); + item->m_parent->FixIndicesOfChildren(indinparent); } } -- 2.45.2