From 7afc3f7df96ab5c1e8dba4229ddbb224be4236b8 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 25 Apr 2021 19:58:11 -0400 Subject: [PATCH] Rearrange track width button to be more obvious Fixes https://gitlab.com/kicad/code/kicad/-/issues/8300 --- pcbnew/toolbars_pcb_editor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pcbnew/toolbars_pcb_editor.cpp b/pcbnew/toolbars_pcb_editor.cpp index 7368a37102..3bb238c055 100644 --- a/pcbnew/toolbars_pcb_editor.cpp +++ b/pcbnew/toolbars_pcb_editor.cpp @@ -515,6 +515,14 @@ void PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar() UpdateTrackWidthSelectBox( m_SelTrackWidthBox ); m_auxiliaryToolBar->AddControl( m_SelTrackWidthBox ); + m_auxiliaryToolBar->AddTool( ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH, wxEmptyString, + KiScaledBitmap( BITMAPS::auto_track_width, this ), + _( "When routing from an existing track use its width instead " + "of the current width setting" ), + wxITEM_CHECK ); + + m_auxiliaryToolBar->AddScaledSeparator( this ); + // Creates box to display and choose vias diameters: if( m_SelViaSizeBox == nullptr ) @@ -523,14 +531,6 @@ void PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar() UpdateViaSizeSelectBox( m_SelViaSizeBox ); m_auxiliaryToolBar->AddControl( m_SelViaSizeBox ); - m_auxiliaryToolBar->AddScaledSeparator( this ); - - // Creates box to display and choose strategy to handle tracks an vias sizes: - m_auxiliaryToolBar->AddTool( ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH, wxEmptyString, - KiScaledBitmap( BITMAPS::auto_track_width, this ), - _( "When routing from an existing track use its width instead " - "of the current width setting" ), - wxITEM_CHECK ); // Add the box to display and select the current grid size: m_auxiliaryToolBar->AddScaledSeparator( this );