changeset 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 036b75ddcd3f
children 06b5f110c5d2
files layer/TimeRulerLayer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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