Update track width when changed

Tracks starting from pads should change in response to the track width
changing despite having the "follow existing track" width selected.
This commit is contained in:
Seth Hillbrand 2021-10-12 09:52:24 -07:00
parent 8a11e89d0f
commit 7f1247a23c
1 changed files with 2 additions and 6 deletions

View File

@ -1616,12 +1616,8 @@ void LINE_PLACER::UpdateSizes( const SIZES_SETTINGS& aSizes )
if( !m_idle )
{
// If the track width was originally determined from the rules resolver ("use netclass
// width") or continuing from an existing track, we don't want to change the width unless
// the user is moving to an explicitly-specified value.
// NOTE: This doesn't quite correctly handle the case of moving *from* an explicit value
// *to* the "use netclass width" value, but that is more complicated to handle.
if( m_sizes.TrackWidthIsExplicit() )
// If the track width continues from an existing track, we don't want to change the width.
if( m_sizes.TrackWidthIsExplicit() || m_startItem->Kind() != ITEM::SEGMENT_T )
{
m_head.SetWidth( m_sizes.TrackWidth() );
m_tail.SetWidth( m_sizes.TrackWidth() );