From 3e655801b54169bd8900daa36c917c35eb4a263f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 1 Jun 2019 22:47:41 +0100 Subject: [PATCH] Fix bug in selecting grid size in Pcbnew. Fixes: lp:1831337 * https://bugs.launchpad.net/kicad/+bug/1831337 --- common/legacy_gal/eda_draw_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/legacy_gal/eda_draw_frame.cpp b/common/legacy_gal/eda_draw_frame.cpp index 244bb8bf76..832a51f833 100644 --- a/common/legacy_gal/eda_draw_frame.cpp +++ b/common/legacy_gal/eda_draw_frame.cpp @@ -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();