Browse Source

Cleanup a change I made for debug purposes for commit cd2dea7

pull/16/head
jean-pierre charras 5 years ago
parent
commit
f420396990
  1. 25
      gerbview/toolbars_gerber.cpp

25
gerbview/toolbars_gerber.cpp

@ -191,29 +191,24 @@ void GERBVIEW_FRAME::ReCreateAuxiliaryToolbar()
// combobox sizes can have changed: apply new best sizes
auto item = m_auxiliaryToolBar->FindTool( ID_GBR_AUX_TOOLBAR_PCB_CMP_CHOICE );
// if( item )
item->SetMinSize( m_SelComponentBox->GetBestSize() );
wxASSERT( item );
item->SetMinSize( m_SelComponentBox->GetBestSize() );
item = m_auxiliaryToolBar->FindTool( ID_GBR_AUX_TOOLBAR_PCB_NET_CHOICE );
// if( item )
item->SetMinSize( m_SelNetnameBox->GetBestSize() );
wxASSERT( item );
item->SetMinSize( m_SelNetnameBox->GetBestSize() );
item = m_auxiliaryToolBar->FindTool( ID_GBR_AUX_TOOLBAR_PCB_APERATTRIBUTES_CHOICE );
// if( item )
item->SetMinSize( m_SelAperAttributesBox->GetBestSize() );
wxASSERT( item );
item->SetMinSize( m_SelAperAttributesBox->GetBestSize() );
item = m_auxiliaryToolBar->FindTool( ID_ON_GRID_SELECT );
// if( item )
item->SetMinSize( m_gridSelectBox->GetBestSize() );
wxASSERT( item );
item->SetMinSize( m_gridSelectBox->GetBestSize() );
item = m_auxiliaryToolBar->FindTool( ID_ON_ZOOM_SELECT );
// if( item )
item->SetMinSize( m_zoomSelectBox->GetBestSize() );
wxASSERT( item );
item->SetMinSize( m_zoomSelectBox->GetBestSize() );
// after adding the buttons to the toolbar, must call Realize()
m_auxiliaryToolBar->Realize();

Loading…
Cancel
Save