Array bounds checking for KICAD-19D.
This commit is contained in:
parent
21d53d0b86
commit
341124d831
|
@ -32,7 +32,9 @@ wxDataViewItem WX_DATAVIEWCTRL::GetPrevItem( wxDataViewItem const& aItem )
|
|||
{
|
||||
wxDataViewItemArray children;
|
||||
GetModel()->GetChildren( prevItem, children );
|
||||
prevItem = children[children.size() - 1];
|
||||
|
||||
if( children.size() )
|
||||
prevItem = children[children.size() - 1];
|
||||
}
|
||||
|
||||
return prevItem;
|
||||
|
|
Loading…
Reference in New Issue