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

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
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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: