Cleanup a change I made for debug purposes for commit cd2dea7
This commit is contained in:
parent
67bd49b4a8
commit
f420396990
|
@ -191,29 +191,24 @@ void GERBVIEW_FRAME::ReCreateAuxiliaryToolbar()
|
||||||
|
|
||||||
// combobox sizes can have changed: apply new best sizes
|
// combobox sizes can have changed: apply new best sizes
|
||||||
auto item = m_auxiliaryToolBar->FindTool( ID_GBR_AUX_TOOLBAR_PCB_CMP_CHOICE );
|
auto item = m_auxiliaryToolBar->FindTool( ID_GBR_AUX_TOOLBAR_PCB_CMP_CHOICE );
|
||||||
|
wxASSERT( item );
|
||||||
// if( item )
|
item->SetMinSize( m_SelComponentBox->GetBestSize() );
|
||||||
item->SetMinSize( m_SelComponentBox->GetBestSize() );
|
|
||||||
|
|
||||||
item = m_auxiliaryToolBar->FindTool( ID_GBR_AUX_TOOLBAR_PCB_NET_CHOICE );
|
item = m_auxiliaryToolBar->FindTool( ID_GBR_AUX_TOOLBAR_PCB_NET_CHOICE );
|
||||||
|
wxASSERT( item );
|
||||||
// if( item )
|
item->SetMinSize( m_SelNetnameBox->GetBestSize() );
|
||||||
item->SetMinSize( m_SelNetnameBox->GetBestSize() );
|
|
||||||
|
|
||||||
item = m_auxiliaryToolBar->FindTool( ID_GBR_AUX_TOOLBAR_PCB_APERATTRIBUTES_CHOICE );
|
item = m_auxiliaryToolBar->FindTool( ID_GBR_AUX_TOOLBAR_PCB_APERATTRIBUTES_CHOICE );
|
||||||
|
wxASSERT( item );
|
||||||
// if( item )
|
item->SetMinSize( m_SelAperAttributesBox->GetBestSize() );
|
||||||
item->SetMinSize( m_SelAperAttributesBox->GetBestSize() );
|
|
||||||
|
|
||||||
item = m_auxiliaryToolBar->FindTool( ID_ON_GRID_SELECT );
|
item = m_auxiliaryToolBar->FindTool( ID_ON_GRID_SELECT );
|
||||||
|
wxASSERT( item );
|
||||||
// if( item )
|
item->SetMinSize( m_gridSelectBox->GetBestSize() );
|
||||||
item->SetMinSize( m_gridSelectBox->GetBestSize() );
|
|
||||||
|
|
||||||
item = m_auxiliaryToolBar->FindTool( ID_ON_ZOOM_SELECT );
|
item = m_auxiliaryToolBar->FindTool( ID_ON_ZOOM_SELECT );
|
||||||
|
wxASSERT( item );
|
||||||
// if( item )
|
item->SetMinSize( m_zoomSelectBox->GetBestSize() );
|
||||||
item->SetMinSize( m_zoomSelectBox->GetBestSize() );
|
|
||||||
|
|
||||||
// after adding the buttons to the toolbar, must call Realize()
|
// after adding the buttons to the toolbar, must call Realize()
|
||||||
m_auxiliaryToolBar->Realize();
|
m_auxiliaryToolBar->Realize();
|
||||||
|
|
Loading…
Reference in New Issue