diff layer/TimeRulerLayer.cpp @ 380:a6408c382616

* The fix in rev 1002 had the nasty side-effect of breaking part of the fix in rev 972. Re-fixing.
author Chris Cannam
date Tue, 29 Apr 2008 11:07:14 +0000
parents e1a9e478b7f2
children f4960f8ce798
line wrap: on
line diff
--- a/layer/TimeRulerLayer.cpp	Fri Mar 14 17:24:42 2008 +0000
+++ b/layer/TimeRulerLayer.cpp	Tue Apr 29 11:07:14 2008 +0000
@@ -318,7 +318,7 @@
 
 	for (int i = 1; i < ticks; ++i) {
 
-            dms = ms - incms + (i * double(incms)) / ticks;
+            dms = ms + (i * double(incms)) / ticks;
             frame = lrint((dms * sampleRate) / 1000.0);
             frame /= v->getZoomLevel();
             frame *= v->getZoomLevel(); // exact pixel as above