While working on the layer changing patch, I found that changing track

size while routing (W, Ctrl+W) didn't update the track in the display
window (you had to move the mouse to get a refresh).
This commit is contained in:
Guillaume Simard 2011-12-22 09:41:16 -06:00 committed by Dick Hollenbeck
parent c2e5fcaec8
commit 1983b2db05
1 changed files with 14 additions and 0 deletions

View File

@ -235,15 +235,29 @@ void PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
break; break;
case HK_SWITCH_TRACK_WIDTH_TO_NEXT: case HK_SWITCH_TRACK_WIDTH_TO_NEXT:
if( GetCanvas()->m_mouseCaptureCallback == ShowNewTrackWhenMovingCursor )
ShowNewTrackWhenMovingCursor( GetCanvas(), aDC, wxDefaultPosition, false );
GetBoard()->m_TrackWidthSelector = ( GetBoard()->m_TrackWidthSelector + 1 ) % GetBoard()->m_TrackWidthSelector = ( GetBoard()->m_TrackWidthSelector + 1 ) %
GetBoard()->m_TrackWidthList.size(); GetBoard()->m_TrackWidthList.size();
if( GetCanvas()->m_mouseCaptureCallback == ShowNewTrackWhenMovingCursor )
ShowNewTrackWhenMovingCursor( GetCanvas(), aDC, wxDefaultPosition, false );
break; break;
case HK_SWITCH_TRACK_WIDTH_TO_PREVIOUS: case HK_SWITCH_TRACK_WIDTH_TO_PREVIOUS:
if( GetCanvas()->m_mouseCaptureCallback == ShowNewTrackWhenMovingCursor )
ShowNewTrackWhenMovingCursor( GetCanvas(), aDC, wxDefaultPosition, false );
if( GetBoard()->m_TrackWidthSelector == 0 ) if( GetBoard()->m_TrackWidthSelector == 0 )
GetBoard()->m_TrackWidthSelector = GetBoard()->m_TrackWidthList.size(); GetBoard()->m_TrackWidthSelector = GetBoard()->m_TrackWidthList.size();
GetBoard()->m_TrackWidthSelector--; GetBoard()->m_TrackWidthSelector--;
if( GetCanvas()->m_mouseCaptureCallback == ShowNewTrackWhenMovingCursor )
ShowNewTrackWhenMovingCursor( GetCanvas(), aDC, wxDefaultPosition, false );
break; break;
case HK_SWITCH_GRID_TO_FASTGRID1: case HK_SWITCH_GRID_TO_FASTGRID1: