Don't treat a rule area as an edge cut in the router.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15200
This commit is contained in:
Jeff Young 2023-07-15 18:30:02 +01:00
parent 0446152d15
commit 581cbfc112
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ static bool isEdge( const PNS::ITEM* aItem )
if ( !aItem )
return false;
const BOARD_ITEM *parent = aItem->BoardItem();
const PCB_SHAPE *parent = dynamic_cast<PCB_SHAPE*>( aItem->BoardItem() );
return parent && ( parent->IsOnLayer( Edge_Cuts ) || parent->IsOnLayer( Margin ) );
}