mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 00:21:31 +00:00
Make sure we open all outlines before running distance test.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19521
This commit is contained in:
parent
b916dfa03a
commit
37a948fa69
@ -243,7 +243,8 @@ bool DRC_TEST_PROVIDER_ANNULAR_WIDTH::Run()
|
||||
else
|
||||
{
|
||||
// Disable is-inside test in SquaredDistance
|
||||
aggregatePadOutline.Outline( 0 ).SetClosed( false );
|
||||
for( int ii = 0; ii < aggregatePadOutline.OutlineCount(); ++ii )
|
||||
aggregatePadOutline.Outline( ii ).SetClosed( false );
|
||||
|
||||
dist_sq = aggregatePadOutline.SquaredDistanceToSeg( slot->GetSeg() );
|
||||
annularWidth = sqrt( dist_sq ) - slot->GetWidth() / 2;
|
||||
|
Loading…
Reference in New Issue
Block a user