Ensure we are not trying to sort on an invalid col

Fixes https://gitlab.com/kicad/code/kicad/issues/13377
This commit is contained in:
Seth Hillbrand 2023-01-04 13:55:14 -08:00
parent 6f7af062ff
commit 20d7ffd5d3
1 changed files with 1 additions and 0 deletions

View File

@ -871,6 +871,7 @@ protected:
return compareUInt( i1.GetTotalLength(), i2.GetTotalLength(), aAsc );
else if( aCol > COLUMN_NUM_STATIC_COL
&& aCol < m_parent.m_columns.size()
&& i1.GetLayerWireLength( m_parent.m_columns[aCol].layer )
!= i2.GetLayerWireLength( m_parent.m_columns[aCol].layer ) )
{