Fix bug in selecting grid size in Pcbnew.

Fixes: lp:1831337
* https://bugs.launchpad.net/kicad/+bug/1831337
This commit is contained in:
Jeff Young 2019-06-01 22:47:41 +01:00
parent 7f1ed30ff5
commit 3e655801b5
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ void EDA_DRAW_FRAME::OnSelectGrid( wxCommandEvent& event )
}
else if( id >= ID_POPUP_GRID_FIRST && id < ID_POPUP_GRID_SEPARATOR )
{
m_toolManager->RunAction( ACTIONS::gridPreset, true, id );
m_toolManager->RunAction( ACTIONS::gridPreset, true, id - ID_POPUP_GRID_FIRST );
}
UpdateStatusBar();