Fixed property iterator crash when iterating through 'non-interesting' properties at the edges of the grid.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -107,7 +107,8 @@ void wxPropertyGridIteratorBase::Assign( const wxPropertyGridIteratorBase& it )
|
|||||||
void wxPropertyGridIteratorBase::Prev()
|
void wxPropertyGridIteratorBase::Prev()
|
||||||
{
|
{
|
||||||
wxPGProperty* property = m_property;
|
wxPGProperty* property = m_property;
|
||||||
wxASSERT( property );
|
if ( !property )
|
||||||
|
return;
|
||||||
|
|
||||||
wxPGProperty* parent = property->GetParent();
|
wxPGProperty* parent = property->GetParent();
|
||||||
wxASSERT( parent );
|
wxASSERT( parent );
|
||||||
@@ -152,7 +153,8 @@ void wxPropertyGridIteratorBase::Prev()
|
|||||||
void wxPropertyGridIteratorBase::Next( bool iterateChildren )
|
void wxPropertyGridIteratorBase::Next( bool iterateChildren )
|
||||||
{
|
{
|
||||||
wxPGProperty* property = m_property;
|
wxPGProperty* property = m_property;
|
||||||
wxASSERT( property );
|
if ( !property )
|
||||||
|
return;
|
||||||
|
|
||||||
if ( property->GetChildCount() &&
|
if ( property->GetChildCount() &&
|
||||||
wxPG_ITERATOR_PARENTEXMASK_TEST(property, m_parentExMask) &&
|
wxPG_ITERATOR_PARENTEXMASK_TEST(property, m_parentExMask) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user