mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 11:20:09 +00:00
Filled shapes can still have a border width.
This commit is contained in:
parent
7b80e93a4b
commit
01a19bf3d0
@ -342,16 +342,9 @@ bool CN_ANCHOR::IsDangling() const
|
||||
return connected_count < minimal_count;
|
||||
|
||||
if( Parent()->Type() == PCB_TRACE_T || Parent()->Type() == PCB_ARC_T )
|
||||
{
|
||||
accuracy = KiROUND( static_cast<const PCB_TRACK*>( Parent() )->GetWidth() / 2 );
|
||||
}
|
||||
else if( Parent()->Type() == PCB_SHAPE_T )
|
||||
{
|
||||
auto shape = static_cast<const PCB_SHAPE*>( Parent() );
|
||||
|
||||
if( !shape->IsFilled() )
|
||||
accuracy = KiROUND( shape->GetWidth() / 2 );
|
||||
}
|
||||
accuracy = KiROUND( static_cast<const PCB_SHAPE*>( Parent() )->GetWidth() / 2 );
|
||||
|
||||
// Items with multiple anchors have usually items connected to each anchor.
|
||||
// We want only the item count of this anchor point
|
||||
|
Loading…
Reference in New Issue
Block a user