Fix a typo that was keeping units refresh from working.

Fixes https://gitlab.com/kicad/code/kicad/issues/4249
This commit is contained in:
Jeff Young 2020-04-22 22:33:22 +01:00
parent 7ce0b11600
commit c8140ddb4a
2 changed files with 2 additions and 1 deletions

View File

@ -833,7 +833,7 @@ void EDA_DRAW_FRAME::RecreateToolbars()
ReCreateOptToolbar();
if( m_auxiliaryToolBar ) // Additional tools under main toolbar
ReCreateOptToolbar();
ReCreateAuxiliaryToolbar();
// Update the checked state of tools
SyncToolbars();

View File

@ -426,6 +426,7 @@ void PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar()
{
UpdateTrackWidthSelectBox( m_SelTrackWidthBox );
UpdateViaSizeSelectBox( m_SelViaSizeBox );
UpdateGridSelectBox();
// combobox sizes can have changed: apply new best sizes
wxAuiToolBarItem* item = m_auxiliaryToolBar->FindTool( ID_AUX_TOOLBAR_PCB_TRACK_WIDTH );