Skip to content

Commit

Permalink
Change LTMPlot to use GappedCurve for Measures
Browse files Browse the repository at this point in the history
Better handling when HRV data is not present
  • Loading branch information
amtriathlon committed Jan 28, 2019
1 parent 9138a28 commit 6301996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Charts/LTMPlot.cpp
Expand Up @@ -449,7 +449,7 @@ LTMPlot::setData(LTMSettings *set)
if (count <= 0) continue;

// Create a curve
QwtPlotCurve *current = (metricDetail.type == METRIC_ESTIMATE || metricDetail.type == METRIC_BANISTER)
QwtPlotCurve *current = (metricDetail.type == METRIC_ESTIMATE || metricDetail.type == METRIC_BANISTER || metricDetail.type == METRIC_D_MEASURE)
? new QwtPlotGappedCurve(metricDetail.uname, 1)
: new QwtPlotCurve(metricDetail.uname);
current->setVisible(!metricDetail.hidden);
Expand Down Expand Up @@ -604,7 +604,7 @@ LTMPlot::setData(LTMSettings *set)
//qDebug()<<"Create curve data.."<<timer.elapsed();

// Create a curve
QwtPlotCurve *current = (metricDetail.type == METRIC_ESTIMATE || metricDetail.type == METRIC_BANISTER)
QwtPlotCurve *current = (metricDetail.type == METRIC_ESTIMATE || metricDetail.type == METRIC_BANISTER || metricDetail.type == METRIC_D_MEASURE)
? new QwtPlotGappedCurve(metricDetail.uname, 1)
: new QwtPlotCurve(metricDetail.uname);
current->setVisible(!metricDetail.hidden);
Expand Down

0 comments on commit 6301996

Please sign in to comment.