diff --git a/src/ErgFilePlot.cpp b/src/ErgFilePlot.cpp index 95667fd7e..cbc89edae 100644 --- a/src/ErgFilePlot.cpp +++ b/src/ErgFilePlot.cpp @@ -246,6 +246,7 @@ ErgFilePlot::ErgFilePlot(Context *context) : context(context) ergFile = NULL; setAutoReplot(false); + setData(ergFile); } void diff --git a/src/ErgFilePlot.h b/src/ErgFilePlot.h index 410c54300..96c3693c9 100644 --- a/src/ErgFilePlot.h +++ b/src/ErgFilePlot.h @@ -116,7 +116,7 @@ public: virtual QwtText label(double v) const { v /= 1000; - QTime t = QTime().addSecs(v); + QTime t = QTime(0,0,0,0).addSecs(v); if (scaleMap().sDist() > 5) return t.toString("hh:mm"); return t.toString("hh:mm:ss");