Fix length overestimation when first/last line segment enters a pad.
Fixes https://gitlab.com/kicad/code/kicad/issues/13322
This commit is contained in:
parent
3f34485013
commit
95f5d92fc6
|
@ -381,8 +381,7 @@ const ITEM_SET TOPOLOGY::AssembleTuningPath( ITEM* aStart, SOLID** aStartPad, SO
|
|||
// Whole segment is inside: clip out this segment
|
||||
clip = vertex;
|
||||
}
|
||||
else if( containsB &&
|
||||
( aForward ? vertex < aLine.PointCount() - 1 : vertex > 0 ) )
|
||||
else if( containsB )
|
||||
{
|
||||
// Only one point inside: Find the intersection
|
||||
VECTOR2I loc;
|
||||
|
|
Loading…
Reference in New Issue