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
|
// Whole segment is inside: clip out this segment
|
||||||
clip = vertex;
|
clip = vertex;
|
||||||
}
|
}
|
||||||
else if( containsB &&
|
else if( containsB )
|
||||||
( aForward ? vertex < aLine.PointCount() - 1 : vertex > 0 ) )
|
|
||||||
{
|
{
|
||||||
// Only one point inside: Find the intersection
|
// Only one point inside: Find the intersection
|
||||||
VECTOR2I loc;
|
VECTOR2I loc;
|
||||||
|
|
Loading…
Reference in New Issue