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:
parent
6f7af062ff
commit
20d7ffd5d3
|
@ -871,6 +871,7 @@ protected:
|
||||||
return compareUInt( i1.GetTotalLength(), i2.GetTotalLength(), aAsc );
|
return compareUInt( i1.GetTotalLength(), i2.GetTotalLength(), aAsc );
|
||||||
|
|
||||||
else if( aCol > COLUMN_NUM_STATIC_COL
|
else if( aCol > COLUMN_NUM_STATIC_COL
|
||||||
|
&& aCol < m_parent.m_columns.size()
|
||||||
&& i1.GetLayerWireLength( m_parent.m_columns[aCol].layer )
|
&& i1.GetLayerWireLength( m_parent.m_columns[aCol].layer )
|
||||||
!= i2.GetLayerWireLength( m_parent.m_columns[aCol].layer ) )
|
!= i2.GetLayerWireLength( m_parent.m_columns[aCol].layer ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue