Knockout different-net dimensions in zone-filler.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16549
This commit is contained in:
Jeff Young 2024-01-10 16:41:38 +00:00
parent a74c96b287
commit 435e60d0e5
1 changed files with 14 additions and 0 deletions

View File

@ -46,6 +46,7 @@
#include <core/thread_pool.h>
#include <math/util.h> // for KiROUND
#include "zone_filler.h"
#include "pcb_dimension.h"
ZONE_FILLER::ZONE_FILLER( BOARD* aBoard, COMMIT* aCommit ) :
@ -842,6 +843,19 @@ void ZONE_FILLER::addKnockout( BOARD_ITEM* aItem, PCB_LAYER_ID aLayer, int aGap,
aIgnoreLineWidth );
break;
case PCB_DIM_ALIGNED_T:
case PCB_DIM_LEADER_T:
case PCB_DIM_CENTER_T:
case PCB_DIM_RADIAL_T:
case PCB_DIM_ORTHOGONAL_T:
{
PCB_DIMENSION_BASE* dim = static_cast<PCB_DIMENSION_BASE*>( aItem );
dim->TransformShapeToPolygon( aHoles, aLayer, aGap, m_maxError, ERROR_OUTSIDE, false );
dim->PCB_TEXT::TransformShapeToPolygon( aHoles, aLayer, aGap, m_maxError, ERROR_OUTSIDE );
break;
}
default:
break;
}