1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 06:38:49 +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:
James Crook 2016-06-30 23:35:29 +01:00
parent 5b7dd53add
commit ee60ff37ba

View File

@ -1067,7 +1067,7 @@ wxString LWSlider::GetMaxTip() const
switch(mStyle)
{
case FRAC_SLIDER:
val.Printf(wxT("%d.99"), (int) mMinValue - mMaxValue);
val.Printf(wxT("%d.99"), (int) (mMinValue - mMaxValue));
break;
case DB_SLIDER: