pcbnew: Allow Missing legacy option
LEGACY is disabled for GTK3, so we may not find the menu item
Fixes: lp:1822877
* https://bugs.launchpad.net/kicad/+bug/1822877
(cherry picked from commit ce254d1061
)
This commit is contained in:
parent
07ac3499f3
commit
f58844bf8b
|
@ -1195,7 +1195,7 @@ void PCB_BASE_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