mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-22 15:20:15 +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 Envelope::ValueOfPixel( int y, int height, bool upper, bool dB,
|
||||||
float zoomMin, float zoomMax)
|
float zoomMin, float zoomMax)
|
||||||
{
|
{
|
||||||
double dBRange;
|
double dBRange = 0;
|
||||||
if (dB)
|
if (dB)
|
||||||
// TODO: Cache the gPrefs value. Reading it every time is inefficient.
|
// TODO: Cache the gPrefs value. Reading it every time is inefficient.
|
||||||
dBRange = gPrefs->Read(wxT("/GUI/EnvdBRange"), ENV_DB_RANGE);
|
dBRange = gPrefs->Read(wxT("/GUI/EnvdBRange"), ENV_DB_RANGE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user