diff --git a/src/effects/ladspa/LadspaEffect.cpp b/src/effects/ladspa/LadspaEffect.cpp index 9cb1d7ab9..2cb161468 100644 --- a/src/effects/ladspa/LadspaEffect.cpp +++ b/src/effects/ladspa/LadspaEffect.cpp @@ -1287,7 +1287,7 @@ LadspaEffectDialog::LadspaEffectDialog(LadspaEffect *eff, if (mEffect->GetType() == EffectTypeGenerate) { item = new wxStaticText(w, 0, _("Length (seconds):")); gridSizer->Add(item, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL, 5); - mSeconds = new TimeTextCtrl(w, + mSeconds = new NumericTextCtrl(NumericConverter::TIME, w, wxID_ANY, _("hh:mm:ss + milliseconds"), length, @@ -1565,7 +1565,7 @@ void LadspaEffectDialog::ControlSetFocus(wxFocusEvent & evt) double LadspaEffectDialog::GetLength() { if (mEffect->GetType() == EffectTypeGenerate) { - return mSeconds->GetTimeValue(); + return mSeconds->GetValue(); } return 0; diff --git a/src/effects/ladspa/LadspaEffect.h b/src/effects/ladspa/LadspaEffect.h index 134bd8b0d..daa91e1a9 100644 --- a/src/effects/ladspa/LadspaEffect.h +++ b/src/effects/ladspa/LadspaEffect.h @@ -19,7 +19,7 @@ class wxCheckBox; #include "audacity/ModuleInterface.h" #include "audacity/PluginInterface.h" -#include "../../widgets/TimeTextCtrl.h" +#include "../../widgets/NumericTextCtrl.h" #include "ladspa.h" @@ -224,5 +224,5 @@ private: unsigned long mNumParams; float *mInputControls; LadspaEffect *mEffect; - TimeTextCtrl *mSeconds; + NumericTextCtrl *mSeconds; };