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

Modified Files:
        SmartRecordDialog.cpp 
Log Message:
Workaround for undefined wxLongLong::ToDouble() on older wxWidgets versions

Index: SmartRecordDialog.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/SmartRecordDialog.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- SmartRecordDialog.cpp       7 Sep 2006 23:09:39 -0000       1.6
+++ SmartRecordDialog.cpp       11 Sep 2006 07:12:57 -0000      1.7
@@ -294,7 +294,8 @@
       {
          wxString strFormat1 = wxT("099 days 024 h 060 m 060 s");
          m_pTimeTextCtrl_Duration = new TimeTextCtrl(this, 
ID_TIMETEXT_DURATION, strFormat1);
-         
m_pTimeTextCtrl_Duration->SetTimeValue(m_TimeSpan_Duration.GetSeconds().ToDouble());
 //vvv milliseconds?
+         m_pTimeTextCtrl_Duration->SetTimeValue(
+            
Internat::CompatibleToDouble(m_TimeSpan_Duration.GetSeconds().ToString())); 
//vvv milliseconds?
          S.AddWindow(m_pTimeTextCtrl_Duration);
          m_pTimeTextCtrl_Duration->EnableMenu(false);
       }
@@ -348,7 +349,8 @@
 {
    //vvvvv A week overflows timeTextCTrl, so implement days ctrl and fix this 
calculation.
    m_TimeSpan_Duration = m_DateTime_End - m_DateTime_Start;
-   
m_pTimeTextCtrl_Duration->SetTimeValue(m_TimeSpan_Duration.GetSeconds().ToDouble());
 //vvv milliseconds?
+   m_pTimeTextCtrl_Duration->SetTimeValue(
+      
Internat::CompatibleToDouble(m_TimeSpan_Duration.GetSeconds().ToString())); 
//vvv milliseconds?
 }
 
 // Update m_DateTime_End and ctrls based on m_DateTime_Start and 
m_TimeSpan_Duration.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to