From c026c3af7b5a570e0daea0664daf048079e89dc2 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 --- 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 1fadfa331e..9614dcb75d 100644 --- a/pcbnew/router/pns_kicad_iface.cpp +++ b/pcbnew/router/pns_kicad_iface.cpp @@ -400,7 +400,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 ) {