From 20d7ffd5d3e07d7835c1a863229251c83c4f94df Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 4 Jan 2023 13:55:14 -0800 Subject: [PATCH] Ensure we are not trying to sort on an invalid col Fixes https://gitlab.com/kicad/code/kicad/issues/13377 --- pcbnew/dialogs/dialog_net_inspector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/dialogs/dialog_net_inspector.cpp b/pcbnew/dialogs/dialog_net_inspector.cpp index 8712ecda94..b9715b5df6 100644 --- a/pcbnew/dialogs/dialog_net_inspector.cpp +++ b/pcbnew/dialogs/dialog_net_inspector.cpp @@ -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 ) ) {