Previous check didn't account for router dragging.

This commit is contained in:
Jeff Young 2020-10-09 14:30:55 +01:00
parent 2ca819a627
commit b31470012a
1 changed files with 1 additions and 1 deletions

View File

@ -1637,7 +1637,7 @@ int ROUTER_TOOL::onTrackViaSizeChanged( const TOOL_EVENT& aEvent )
{
PNS::SIZES_SETTINGS sizes( m_router->Sizes() );
if( m_router->RoutingInProgress() )
if( !m_router->GetCurrentNets().empty() )
m_iface->ImportSizes( sizes, nullptr, m_router->GetCurrentNets()[0] );
m_router->UpdateSizes( sizes );