From 7f1247a23cca0c3db93b08b97220e7dc4aca5ece Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 12 Oct 2021 09:52:24 -0700 Subject: [PATCH] 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. --- pcbnew/router/pns_line_placer.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pcbnew/router/pns_line_placer.cpp b/pcbnew/router/pns_line_placer.cpp index 2d95c5ffb1..c1fa4ecaaf 100644 --- a/pcbnew/router/pns_line_placer.cpp +++ b/pcbnew/router/pns_line_placer.cpp @@ -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() );