From 217ba2bbec820affe67180357216f252a5b7a66a Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Sun, 14 Feb 2021 15:55:08 -0600 Subject: [PATCH] Handle VEL_SLIDER in SliderDialog --- src/widgets/ASlider.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/widgets/ASlider.cpp b/src/widgets/ASlider.cpp index 2a5a25668..00e0b2506 100644 --- a/src/widgets/ASlider.cpp +++ b/src/widgets/ASlider.cpp @@ -297,6 +297,13 @@ SliderDialog::SliderDialog(wxWindow * parent, wxWindowID id, &mValue, NumValidatorStyle::DEFAULT, -100.0, 100.0) .AddTextBox({}, wxEmptyString, 15); } + else if (style == VEL_SLIDER) + { + mTextCtrl = S + .Validator>( + &mValue, NumValidatorStyle::DEFAULT, -50.0, 50.0) + .AddTextBox({}, wxEmptyString, 15); + } else { mTextCtrl = S