Fix bug in selecting grid size in Pcbnew.
Fixes: lp:1831337 * https://bugs.launchpad.net/kicad/+bug/1831337
This commit is contained in:
parent
7f1ed30ff5
commit
3e655801b5
|
@ -378,7 +378,7 @@ void EDA_DRAW_FRAME::OnSelectGrid( wxCommandEvent& event )
|
||||||
}
|
}
|
||||||
else if( id >= ID_POPUP_GRID_FIRST && id < ID_POPUP_GRID_SEPARATOR )
|
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();
|
UpdateStatusBar();
|
||||||
|
|
Loading…
Reference in New Issue