From e710b8b370390d8a387b410d4db4dc0e7c7d3d1a Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 19 Jan 2017 10:51:47 +0100 Subject: [PATCH] Fix incorrect parameter type when appending zoom and grid menuitems --- common/zoom.cpp | 6 +++--- pcbnew/tools/grid_menu.cpp | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/zoom.cpp b/common/zoom.cpp index 5107ab88dc..93ef8417f7 100644 --- a/common/zoom.cpp +++ b/common/zoom.cpp @@ -1,8 +1,8 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2004 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com - * Copyright (C) 1992-2011 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr + * Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -289,7 +289,7 @@ void EDA_DRAW_FRAME::AddMenuZoomAndGrid( wxMenu* MasterMenu ) for( unsigned i = 0; i < gridsList.GetCount(); i++ ) { GRID_TYPE& grid = screen->GetGrid( i ); - gridMenu->Append( grid.m_CmdId, gridsList[i], wxEmptyString, true ); + gridMenu->Append( grid.m_CmdId, gridsList[i], wxEmptyString, wxITEM_CHECK ); if( (int)i == icurr ) gridMenu->Check( grid.m_CmdId, true ); diff --git a/pcbnew/tools/grid_menu.cpp b/pcbnew/tools/grid_menu.cpp index 9647fa9e76..2f4b90fd84 100644 --- a/pcbnew/tools/grid_menu.cpp +++ b/pcbnew/tools/grid_menu.cpp @@ -3,6 +3,7 @@ * * Copyright (C) 2015 CERN * @author Maciej Suminski + * Copyright (C) 2015-2017 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -45,7 +46,7 @@ GRID_MENU::GRID_MENU( EDA_DRAW_FRAME* aParent ) : m_parent( aParent ) for( unsigned int i = 0; i < gridsList.GetCount(); ++i ) { GRID_TYPE& grid = screen->GetGrid( i ); - Append( grid.m_CmdId, gridsList[i], wxEmptyString, true ); + Append( grid.m_CmdId, gridsList[i], wxEmptyString, wxITEM_CHECK ); } }