router: remeber to make a shove lockpoint when placing a lone via

Note to self: works around a possible bug in CommitPlacement()/RewindToLastLockedNode()

fixes: https://gitlab.com/kicad/code/kicad/-/issues/9695
This commit is contained in:
Tomasz Wlostowski 2021-11-21 00:17:20 +01:00
parent c1703212dc
commit c40e921cb3
1 changed files with 3 additions and 0 deletions

View File

@ -1290,7 +1290,10 @@ bool LINE_PLACER::FixRoute( const VECTOR2I& aP, ITEM* aEndItem, bool aForceFinis
///< @todo Determine what to do if m_lastNode is a null pointer. I'm guessing return
///< false but someone with more knowledge of the code will need to determine that..
if( m_lastNode )
{
m_lastNode->Add( Clone( pl.Via() ) );
m_shove->AddLockedSpringbackNode( m_lastNode );
}
m_currentNode = nullptr;