Add zone margin when subtracting other graphics and zones.
It was already added for pads and tracks, but not the other objects.
Fixes https://gitlab.com/kicad/code/kicad/issues/10896
(cherry picked from commit 81bed9ab96
)
This commit is contained in:
parent
75a4036e45
commit
762258203c
|
@ -855,7 +855,7 @@ void ZONE_FILLER::buildCopperItemClearances( const ZONE* aZone, PCB_LAYER_ID aLa
|
|||
aZone, aItem, Margin ) );
|
||||
}
|
||||
|
||||
addKnockout( aItem, aLayer, gap, ignoreLineWidths, aHoles );
|
||||
addKnockout( aItem, aLayer, gap + extra_margin, ignoreLineWidths, aHoles );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -932,7 +932,8 @@ void ZONE_FILLER::buildCopperItemClearances( const ZONE* aZone, PCB_LAYER_ID aLa
|
|||
aLayer );
|
||||
|
||||
SHAPE_POLY_SET poly;
|
||||
aKnockout->TransformShapeWithClearanceToPolygon( poly, aLayer, gap,
|
||||
aKnockout->TransformShapeWithClearanceToPolygon( poly, aLayer,
|
||||
gap + extra_margin,
|
||||
m_maxError,
|
||||
ERROR_OUTSIDE );
|
||||
aHoles.Append( poly );
|
||||
|
|
Loading…
Reference in New Issue