1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Fix uninitialized variable

This commit is contained in:
Paul Licameli 2015-06-02 19:24:04 -04:00
parent 437e28db1a
commit e900a2b21c

View File

@ -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);