Fix crash in gerbview when legacy disabled
Fixes: lp:1822877 * https://bugs.launchpad.net/kicad/+bug/1822877
This commit is contained in:
parent
4020b5689b
commit
ca7aec2d4e
|
@ -565,7 +565,7 @@ void GERBVIEW_FRAME::OnUpdateSwitchCanvas( wxUpdateUIEvent& aEvent )
|
|||
for( auto ii: menuList )
|
||||
{
|
||||
wxMenuItem* item = menuBar->FindItem( ii.menuId );
|
||||
if( ii.galType == canvasType )
|
||||
if( item && ii.galType == canvasType )
|
||||
{
|
||||
item->Check( true );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue