changeset 1342:ed6400d5b571 zoom

Fix stupidity
author Chris Cannam
date Thu, 27 Sep 2018 15:54:02 +0100
parents ab2cafd3a7cb
children 5f3e374746b6
files layer/TimeRulerLayer.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/layer/TimeRulerLayer.cpp	Thu Sep 27 15:20:25 2018 +0100
+++ b/layer/TimeRulerLayer.cpp	Thu Sep 27 15:54:02 2018 +0100
@@ -30,7 +30,7 @@
 #include <cmath>
 #include <stdexcept>
 
-//#define DEBUG_TIME_RULER_LAYER 1
+#define DEBUG_TIME_RULER_LAYER 1
 
 
 TimeRulerLayer::TimeRulerLayer() :
@@ -304,10 +304,10 @@
 
         if (x >= rect.x() - 50 && us >= minlabel) {
 
-            RealTime rt = RealTime(0, us * 1000);
+            RealTime rt = RealTime::fromMicroseconds(us);
 
 #ifdef DEBUG_TIME_RULER_LAYER
-            cerr << "X in range, drawing line here for time " << rt.toText() << endl;
+            cerr << "X in range, drawing line here for time " << rt.toText() << " (usec = " << us << ")" << endl;
 #endif
 
             QString text(QString::fromStdString(rt.toText()));