mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 14:13:57 +01:00
Merge remote-tracking branch 'walisser/upstream'
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
|
||||
#if defined(USE_LV2)
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include <wx/button.h>
|
||||
#include <wx/choice.h>
|
||||
#include <wx/dcbuffer.h>
|
||||
@@ -23,7 +25,6 @@
|
||||
#include <wx/evtloop.h>
|
||||
#endif
|
||||
|
||||
#include <wx/math.h>
|
||||
#include <wx/msgdlg.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/statbox.h>
|
||||
@@ -561,13 +562,13 @@ bool LV2Effect::SetHost(EffectHostInterface *host)
|
||||
lilv_scale_points_free(points);
|
||||
|
||||
// Collect the value and range info
|
||||
ctrl.mHasLo = !wxIsNaN(minimumVals[i]);
|
||||
ctrl.mHasHi = !wxIsNaN(maximumVals[i]);
|
||||
ctrl.mHasLo = !std::isnan(minimumVals[i]);
|
||||
ctrl.mHasHi = !std::isnan(maximumVals[i]);
|
||||
ctrl.mMin = ctrl.mHasLo ? minimumVals[i] : 0.0;
|
||||
ctrl.mMax = ctrl.mHasHi ? maximumVals[i] : 1.0;
|
||||
ctrl.mLo = ctrl.mMin;
|
||||
ctrl.mHi = ctrl.mMax;
|
||||
ctrl.mDef = !wxIsNaN(defaultValues[i]) ?
|
||||
ctrl.mDef = !std::isnan(defaultValues[i]) ?
|
||||
defaultValues[i] :
|
||||
ctrl.mHasLo ?
|
||||
ctrl.mLo :
|
||||
|
||||
Reference in New Issue
Block a user