# HG changeset patch # User Chris Cannam # Date 1538060042 -3600 # Node ID ed6400d5b5711d14bdd7a1d98ae09100b945e34e # Parent ab2cafd3a7cb32295ef1886c37f4ddb684ab9c74 Fix stupidity diff -r ab2cafd3a7cb -r ed6400d5b571 layer/TimeRulerLayer.cpp --- 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 #include -//#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()));