Don't attempt to plot rule areas.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18133
This commit is contained in:
Jeff Young 2024-06-01 19:16:04 +01:00
parent 53ec5d2c19
commit dc8fd0996d
1 changed files with 6 additions and 0 deletions

View File

@ -689,6 +689,9 @@ void PlotStandardLayer( BOARD* aBoard, PLOTTER* aPlotter, LSET aLayerMask,
for( const ZONE* zone : aBoard->Zones() )
{
if( zone->GetIsRuleArea() )
continue;
for( PCB_LAYER_ID layer : zone->GetLayerSet().Seq() )
{
if( !aLayerMask[layer] )
@ -980,6 +983,9 @@ void PlotSolderMaskLayer( BOARD *aBoard, PLOTTER* aPlotter, LSET aLayerMask,
for( ZONE* zone : aBoard->Zones() )
{
if( zone->GetIsRuleArea() )
continue;
if( !zone->IsOnLayer( layer ) )
continue;