Update of /cvsroot/audacity/audacity-src/src/widgets
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv29366/src/widgets
Modified Files:
Meter.cpp
Log Message:
Initialize members of MeterBar structure in Meter constructor - The constructor
uses Meter::Reset to initialize MeterBar, but was using mNumBars to do it, wich
is set to 0 in the parameter list, rendering it useless. Changing it to
kMaxMeterBars, which is what is used to define the lengths of the members in
the header file, is used to guarantee that it will always and completely be
initialized upon construction.
Index: Meter.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/Meter.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- Meter.cpp 24 Oct 2008 23:34:37 -0000 1.36
+++ Meter.cpp 29 Oct 2008 04:06:03 -0000 1.37
@@ -424,7 +424,7 @@
mT = 0;
mRate = sampleRate;
- for(j=0; j<mNumBars; j++)
+ for(j=0; j<kMaxMeterBars; j++)
ResetBar(&mBar[j], resetClipping);
// wxTimers seem to be a little unreliable - sometimes they stop for
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs