diff --git a/pcbnew/router/pns_shove.cpp b/pcbnew/router/pns_shove.cpp index 2808752f4d..852b2787d6 100644 --- a/pcbnew/router/pns_shove.cpp +++ b/pcbnew/router/pns_shove.cpp @@ -1432,7 +1432,7 @@ void SHOVE::unwindLineStack( const LINKED_ITEM* aSeg ) for( std::vector::iterator i = m_optimizerQueue.begin(); i != m_optimizerQueue.end() ; ) { - if( i->ContainsLink( aSeg ) ) + if( i->ContainsLink( aSeg ) && !aSeg->OfKind( ITEM::VIA_T ) ) i = m_optimizerQueue.erase( i ); else i++;