From d6ae915616ef63ce77921e0fcb1a3aa33e1dc704 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 24 Nov 2022 15:45:09 +0000 Subject: [PATCH] Pay attention to layers when sorting pads. Fixes https://gitlab.com/kicad/code/kicad/issues/10143 --- pcbnew/footprint.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index ff7f074082..2085c4ed6e 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -2653,6 +2653,7 @@ bool FOOTPRINT::cmp_pads::operator()( const PAD* aFirst, const PAD* aSecond ) co TEST_PT( aFirst->GetPos0(), aSecond->GetPos0() ); TEST_PT( aFirst->GetSize(), aSecond->GetSize() ); TEST( aFirst->GetShape(), aSecond->GetShape() ); + TEST( aFirst->GetLayerSet().Seq(), aSecond->GetLayerSet().Seq() ); TEST( aFirst->m_Uuid, aSecond->m_Uuid ); // should be always the case for valid boards