1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-05 06:01:04 +01:00

Bug2289: alternative fix...

... see also b23d98fd05 and
bed7b41af9
This commit is contained in:
Paul Licameli
2020-02-26 18:58:10 -05:00
parent f62500c3ab
commit 664dc59392

View File

@@ -566,7 +566,10 @@ wxSlider * ShuttleGuiBase::AddSlider(
wxSlider * pSlider;
mpWind = pSlider = safenew wxSliderWrapper(GetParent(), miId,
pos, Min, Max,
wxDefaultPosition, wxDefaultSize,
wxDefaultPosition,
// Bug2289: On Linux at least, sliders like to be constructed with the
// proper size, not reassigned size later
( ( mItem.mWindowSize == wxSize{} ) ? wxDefaultSize : mItem.mWindowSize ),
GetStyle( wxSL_HORIZONTAL | wxSL_LABELS | wxSL_AUTOTICKS )
);
#if wxUSE_ACCESSIBILITY