router: walkaround algo should not copy the previous via position when the current iteration via placement fails.

fixes: 7827
This commit is contained in:
Tomasz Wlostowski 2021-05-30 00:34:08 +02:00
parent af2e163890
commit fcb89b99a3
1 changed files with 4 additions and 0 deletions

View File

@ -532,6 +532,10 @@ bool LINE_PLACER::rhWalkOnly( const VECTOR2I& aP, LINE& aNewHead )
{ {
LINE initTrack( m_head ); LINE initTrack( m_head );
LINE walkFull( m_head ); LINE walkFull( m_head );
initTrack.RemoveVia();
walkFull.RemoveVia();
int effort = 0; int effort = 0;
bool viaOk = false; bool viaOk = false;