From 882756b676d6d74396b124693ea1937b79fbcef3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 25 Oct 2022 18:26:34 +0100 Subject: [PATCH] Fix typo. Fixes https://gitlab.com/kicad/code/kicad/issues/12753 (cherry picked from commit c026c3af7b5a570e0daea0664daf048079e89dc2) --- pcbnew/router/pns_kicad_iface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/pns_kicad_iface.cpp b/pcbnew/router/pns_kicad_iface.cpp index 632d8396db9..583bf1ece8b 100644 --- a/pcbnew/router/pns_kicad_iface.cpp +++ b/pcbnew/router/pns_kicad_iface.cpp @@ -331,7 +331,7 @@ int PNS_PCBNEW_RULE_RESOLVER::Clearance( const PNS::ITEM* aA, const PNS::ITEM* a layers = aA->Layers().Intersection( aB->Layers() ); // Normalize layer range (no -1 magic numbers) - layers = layers.Intersection( LAYER_RANGE( PCBNEW_LAYER_ID_START, GAL_LAYER_ID_END ) ); + layers = layers.Intersection( LAYER_RANGE( PCBNEW_LAYER_ID_START, PCB_LAYER_ID_COUNT - 1 ) ); for( int layer = layers.Start(); layer <= layers.End(); ++layer ) {