pcbnew: minor bug fixed: left toolbar: show pads filled/sketch tool option did not work

This commit is contained in:
charras 2009-05-31 08:56:35 +00:00
parent 23dace1dc8
commit fd0e99bbd4
1 changed files with 4 additions and 2 deletions

View File

@ -154,6 +154,8 @@ void Dialog_Display_Options::init()
if ( DisplayOpt.DisplayPadFill )
m_OptDisplayPads->SetSelection(1);
else
m_OptDisplayPads->SetSelection(0);
m_Show_Page_Limits->SetSelection( g_ShowPageLimits ? 0 : 1);
@ -379,11 +381,11 @@ void WinEDA_PcbFrame::OnSelectOptionToolbar( wxCommandEvent& event )
case ID_TB_OPTIONS_SHOW_PADS_SKETCH:
if( m_OptionsToolBar->GetToolState( id ) )
{
m_DisplayPadFill = DisplayOpt.DisplayPadFill = true;
m_DisplayPadFill = DisplayOpt.DisplayPadFill = false;
}
else
{
m_DisplayPadFill = DisplayOpt.DisplayPadFill = false;
m_DisplayPadFill = DisplayOpt.DisplayPadFill = true;
}
DrawPanel->Refresh( );
break;