From ee60ff37badb4e8fa933b2679a3a3313c72d9e14 Mon Sep 17 00:00:00 2001 From: James Crook Date: Thu, 30 Jun 2016 23:35:29 +0100 Subject: [PATCH] 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. --- src/widgets/ASlider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/ASlider.cpp b/src/widgets/ASlider.cpp index 48d208489..b07341fd7 100644 --- a/src/widgets/ASlider.cpp +++ b/src/widgets/ASlider.cpp @@ -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: