void PCB_EDIT_FRAME::OnUpdateZoneDisplayStyle( wxUpdateUIEvent& aEvent ) { int selected = aEvent.GetId() - ID_TB_OPTIONS_SHOW_ZONES; if( aEvent.IsChecked() && ( DisplayOpt.DisplayZonesMode == selected ) ) return; aEvent.Check( DisplayOpt.DisplayZonesMode == selected ); }
void PCB_EDIT_FRAME::OnUpdateZoneDisplayStyle( wxUpdateUIEvent& aEvent ) { int selected = aEvent.GetId() - ID_TB_OPTIONS_SHOW_ZONES; DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)GetDisplayOptions(); if( aEvent.IsChecked() && ( displ_opts->m_DisplayZonesMode == selected ) ) return; aEvent.Check( displ_opts->m_DisplayZonesMode == selected ); }