Add parts of arcs to tuning patterns correctly.

This commit is contained in:
Alex Shvartzkop
2024-01-31 21:45:01 +03:00
parent 466c707e91
commit 7d1888c756
+1 -1
View File
@@ -1368,7 +1368,7 @@ void PCB_TUNING_PATTERN::EditPush( GENERATOR_TOOL* aTool, BOARD* aBoard, BOARD_C
{
if( PCB_TRACK* track = dynamic_cast<PCB_TRACK*>( item ) )
{
if( bounds.PointInside( track->GetPosition(), epsilon )
if( bounds.PointInside( track->GetStart(), epsilon )
&& bounds.PointInside( track->GetEnd(), epsilon ) )
{
AddItem( item );