router: fix regression in post-shove optimization

Note to self: we keep track of the formerly pushed vias in the line stack, but pruning one from the optimizer queue should not prune the lines attached to it.
This commit is contained in:
Tomasz Wlostowski
2025-02-24 23:45:19 +01:00
parent 9e4947ed36
commit 78fc95fd6d
+1 -1
View File
@@ -1432,7 +1432,7 @@ void SHOVE::unwindLineStack( const LINKED_ITEM* aSeg )
for( std::vector<LINE>::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++;