pcbnew: Changing the track width while routing

When changing the track width, we need to allow that the track's route
will change based on DRC, so force a move without changing position.

Fixes: lp:1785057
* https://bugs.launchpad.net/kicad/+bug/1785057
This commit is contained in:
Seth Hillbrand 2018-11-24 11:50:51 -08:00
parent 558c38b5c5
commit ff668968f3
1 changed files with 4 additions and 0 deletions

View File

@ -1228,5 +1228,9 @@ int ROUTER_TOOL::onTrackViaSizeChanged( const TOOL_EVENT& aEvent )
sizes.ImportCurrent( board()->GetDesignSettings() );
m_router->UpdateSizes( sizes );
//Changing the track width can affect the placement, so call the
// move routine without changing the destination
m_router->Move( m_endSnapPoint, m_endItem );
return 0;
}