mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Fix uninitialized variable
This commit is contained in:
@@ -331,7 +331,7 @@ void Envelope::WriteXML(XMLWriter &xmlFile)
|
||||
float Envelope::ValueOfPixel( int y, int height, bool upper, bool dB,
|
||||
float zoomMin, float zoomMax)
|
||||
{
|
||||
double dBRange;
|
||||
double dBRange = 0;
|
||||
if (dB)
|
||||
// TODO: Cache the gPrefs value. Reading it every time is inefficient.
|
||||
dBRange = gPrefs->Read(wxT("/GUI/EnvdBRange"), ENV_DB_RANGE);
|
||||
|
||||
Reference in New Issue
Block a user