mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
Fix uninitialized variable
This commit is contained in:
parent
437e28db1a
commit
e900a2b21c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user