Commit 1983b2db authored by Guillaume Simard's avatar Guillaume Simard Committed by Dick Hollenbeck

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).
parent c2e5fcae
......@@ -235,15 +235,29 @@ void PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
break;
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_TrackWidthList.size();
if( GetCanvas()->m_mouseCaptureCallback == ShowNewTrackWhenMovingCursor )
ShowNewTrackWhenMovingCursor( GetCanvas(), aDC, wxDefaultPosition, false );
break;
case HK_SWITCH_TRACK_WIDTH_TO_PREVIOUS:
if( GetCanvas()->m_mouseCaptureCallback == ShowNewTrackWhenMovingCursor )
ShowNewTrackWhenMovingCursor( GetCanvas(), aDC, wxDefaultPosition, false );
if( GetBoard()->m_TrackWidthSelector == 0 )
GetBoard()->m_TrackWidthSelector = GetBoard()->m_TrackWidthList.size();
GetBoard()->m_TrackWidthSelector--;
if( GetCanvas()->m_mouseCaptureCallback == ShowNewTrackWhenMovingCursor )
ShowNewTrackWhenMovingCursor( GetCanvas(), aDC, wxDefaultPosition, false );
break;
case HK_SWITCH_GRID_TO_FASTGRID1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment