mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-07 15:22:34 +02:00
Fix ASSERT on double-clicked slider input.
Previously you could double click on a slider such as the volume slider to get the expanded/dialog view of it, and then assert when you drag the slider. This was caused by wx3 error checking printf arguments. Presumably wx2 did not.
This commit is contained in:
parent
5b7dd53add
commit
ee60ff37ba
@ -1067,7 +1067,7 @@ wxString LWSlider::GetMaxTip() const
|
|||||||
switch(mStyle)
|
switch(mStyle)
|
||||||
{
|
{
|
||||||
case FRAC_SLIDER:
|
case FRAC_SLIDER:
|
||||||
val.Printf(wxT("%d.99"), (int) mMinValue - mMaxValue);
|
val.Printf(wxT("%d.99"), (int) (mMinValue - mMaxValue));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DB_SLIDER:
|
case DB_SLIDER:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user