mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 07:31:19 +01:00
ToolBar.cpp: remove excessive drawing on reset (as well as other resizing/positioning functions.)
Was causing an issue with the DeviceToolBar (discussed in bug 11,) but this change will speed up redraw of other toolbars as well.
This commit is contained in:
@@ -254,9 +254,8 @@ void ToolBar::ReCreateButtons()
|
||||
mSpacer = ms->Add( RWIDTH, 1 );
|
||||
}
|
||||
|
||||
// Set the sizer and do initial layout
|
||||
// Set the sizer
|
||||
SetSizerAndFit( ms );
|
||||
Layout();
|
||||
|
||||
// Recalculate the height to be a multiple of toolbarSingle
|
||||
const int tbs = toolbarSingle + toolbarGap;
|
||||
|
||||
Reference in New Issue
Block a user