Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv22154

Modified Files:
        Internat.cpp 
Log Message:
Fix default value for CompatibleToDouble() if conversion fails

Index: Internat.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Internat.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- Internat.cpp        30 Sep 2006 12:19:09 -0000      1.16
+++ Internat.cpp        26 Jan 2007 10:52:04 -0000      1.17
@@ -105,7 +105,7 @@
 
 double Internat::CompatibleToDouble(const wxString& stringToConvert)
 {
-   double result;
+   double result = 0;
    Internat::CompatibleToDouble(stringToConvert, &result);
    return result;
 }
@@ -130,7 +130,7 @@
    if (digitsAfterDecimalPoint == -1)
    {
       result.Printf(wxT("%f"), numberToConvert);
-
+      
       // Not all libcs respect the decimal separator, so always convert
       // any dots found to the decimal separator
       result.Replace(wxT("."), decSep);


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to