Fix typo.

Fixes https://gitlab.com/kicad/code/kicad/issues/12753
This commit is contained in:
Jeff Young 2022-10-25 18:26:34 +01:00
parent 7f0ebf9e3b
commit c026c3af7b
1 changed files with 1 additions and 1 deletions

View File

@ -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 )
{