JP's patch to fix crash in routing empty board

(cherry picked from commit 8592b2ee70)
This commit is contained in:
Seth Hillbrand
2025-08-26 12:41:54 -07:00
parent 292faaa48d
commit 45bdde41b3
+1 -4
View File
@@ -1501,10 +1501,7 @@ bool LINE_PLACER::Move( const VECTOR2I& aP, ITEM* aEndItem )
current = Trace();
if( !current.PointCount() )
return false;
VECTOR2I splitPoint = current.CLine().CPoint( -1 );
VECTOR2I splitPoint = current.PointCount() ? current.CLine().CLastPoint() : m_p_start;
if( reachesEnd && aEndItem && current.SegmentCount() && aEndItem->OfKind( ITEM::SEGMENT_T ) )
{