1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 23:59:37 +02:00

Fix uninitialised variables

When importing an AUP project, selLow and selHigh may not be defined
in the project. If not defined, this causes an error on initialising
Nyquist. See: https://forum.audacityteam.org/viewtopic.php?f=48&t=118940
This commit is contained in:
SteveDaulton 2021-07-03 17:09:41 +01:00 committed by Panagiotis Vasilopoulos
parent 96cf0f4f67
commit f58e132bb2
No known key found for this signature in database
GPG Key ID: FD806FDB3B2C5270

View File

@ -171,8 +171,8 @@ private:
field(sel0, double);
field(sel1, double);
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
field(selLow, double);
field(selHigh, double);
field(selLow, double) = SelectedRegion::UndefinedFrequency;
field(selHigh, double) = SelectedRegion::UndefinedFrequency;
#endif
field(rate, double);
field(snapto, bool);