Update of /cvsroot/audacity/audacity-src/src/toolbars
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv14824

Modified Files:
        SelectionBar.cpp 
Log Message:
We must initialise the format index to something so that if there is no 
preference readable, something sensible happens in the UI


Index: SelectionBar.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/toolbars/SelectionBar.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- SelectionBar.cpp    29 Dec 2009 16:53:10 -0000      1.30
+++ SelectionBar.cpp    4 Jan 2010 21:51:01 -0000       1.31
@@ -106,7 +106,7 @@
    wxFlexGridSizer *mainSizer;
    wxBoxSizer *hSizer;
 
-   int formatIndex;
+   int formatIndex = 1;
    /* we don't actually need a control yet, but we want to use it's methods
     * to do some look-ups, so we'll have to create one. We can't make the 
     * look-ups static because they depend on translations which are done at


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to