Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19348

Modified Files:
        TimerRecordDialog.cpp 
Log Message:
Milliseconds breaks bounds on ProgressDialog update, so revert to seconds.

Index: TimerRecordDialog.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TimerRecordDialog.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- TimerRecordDialog.cpp       5 Jun 2009 23:04:43 -0000       1.13
+++ TimerRecordDialog.cpp       6 Jun 2009 06:08:14 -0000       1.14
@@ -258,7 +258,7 @@
          // wxString strNewMsg = 
          //    strMsg + _("\nDone: ") + done_TimeSpan.Format() + _("     
Remaining: ") + remaining_TimeSpan.Format();
          updateResult = 
-            progress.Update(done_TimeSpan.GetMilliseconds(), 
m_TimeSpan_Duration.GetMilliseconds()); // , strNewMsg);
+            progress.Update(done_TimeSpan.GetSeconds(), 
m_TimeSpan_Duration.GetSeconds()); // , strNewMsg);
 
          bIsRecording = (wxDateTime::UNow() <= m_DateTime_End); // Call UNow() 
again for extra accuracy...
       }
@@ -370,7 +370,7 @@
          m_pTimeTextCtrl_Duration = new TimeTextCtrl(this, 
ID_TIMETEXT_DURATION, strFormat1);
          m_pTimeTextCtrl_Duration->SetName(_("Duration"));
          m_pTimeTextCtrl_Duration->SetTimeValue(
-            
Internat::CompatibleToDouble(m_TimeSpan_Duration.GetMilliseconds().ToString()));
 
+            
Internat::CompatibleToDouble(m_TimeSpan_Duration.GetSeconds().ToString())); 
          S.AddWindow(m_pTimeTextCtrl_Duration);
          m_pTimeTextCtrl_Duration->EnableMenu(false);
       }
@@ -421,7 +421,7 @@
 {
    m_TimeSpan_Duration = m_DateTime_End - m_DateTime_Start;
    m_pTimeTextCtrl_Duration->SetTimeValue(
-      
Internat::CompatibleToDouble(m_TimeSpan_Duration.GetMilliseconds().ToString()));
 
+      
Internat::CompatibleToDouble(m_TimeSpan_Duration.GetSeconds().ToString())); 
 }
 
 // Update m_DateTime_End and ctrls based on m_DateTime_Start and 
m_TimeSpan_Duration.
@@ -453,8 +453,8 @@
       wxMilliSleep(10);
 
       done_TimeSpan = wxDateTime::UNow() - startWait_DateTime;
-      updateResult = progress.Update(done_TimeSpan.GetMilliseconds(),
-                                    waitDuration.GetMilliseconds());
+      updateResult = progress.Update(done_TimeSpan.GetSeconds(),
+                                    waitDuration.GetSeconds());
 
       bIsRecording = (m_DateTime_Start <= wxDateTime::UNow());
    }


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to