Commit fd0e99bb authored by charras's avatar charras

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

parent 23dace1d
...@@ -154,6 +154,8 @@ void Dialog_Display_Options::init() ...@@ -154,6 +154,8 @@ void Dialog_Display_Options::init()
if ( DisplayOpt.DisplayPadFill ) if ( DisplayOpt.DisplayPadFill )
m_OptDisplayPads->SetSelection(1); m_OptDisplayPads->SetSelection(1);
else
m_OptDisplayPads->SetSelection(0);
m_Show_Page_Limits->SetSelection( g_ShowPageLimits ? 0 : 1); m_Show_Page_Limits->SetSelection( g_ShowPageLimits ? 0 : 1);
...@@ -379,11 +381,11 @@ void WinEDA_PcbFrame::OnSelectOptionToolbar( wxCommandEvent& event ) ...@@ -379,11 +381,11 @@ void WinEDA_PcbFrame::OnSelectOptionToolbar( wxCommandEvent& event )
case ID_TB_OPTIONS_SHOW_PADS_SKETCH: case ID_TB_OPTIONS_SHOW_PADS_SKETCH:
if( m_OptionsToolBar->GetToolState( id ) ) if( m_OptionsToolBar->GetToolState( id ) )
{ {
m_DisplayPadFill = DisplayOpt.DisplayPadFill = true; m_DisplayPadFill = DisplayOpt.DisplayPadFill = false;
} }
else else
{ {
m_DisplayPadFill = DisplayOpt.DisplayPadFill = false; m_DisplayPadFill = DisplayOpt.DisplayPadFill = true;
} }
DrawPanel->Refresh( ); DrawPanel->Refresh( );
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment