diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index ee677513fa..34a11ef75f 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -46,6 +46,7 @@ #include #include // 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( 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; }