From e4e769493c35d3a29e6b7ec4b29178d611d82019 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Sat, 7 Oct 2023 03:41:42 +0300 Subject: [PATCH] Skip very short segments in MEANDER_SHAPE::forward. --- pcbnew/router/pns_meander.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/router/pns_meander.cpp b/pcbnew/router/pns_meander.cpp index 74b4b0a7db..bae3cfe0ad 100644 --- a/pcbnew/router/pns_meander.cpp +++ b/pcbnew/router/pns_meander.cpp @@ -297,6 +297,10 @@ void MEANDER_SHAPE::start( SHAPE_LINE_CHAIN* aTarget, const VECTOR2D& aWhere, co void MEANDER_SHAPE::forward( int aLength ) { + // Very small segments cause problems. + if( aLength < 5 ) + return; + m_currentPos += m_currentDir.Resize( aLength ); m_currentTarget->Append( m_currentPos ); }