Histogram Compare Fixup

.. remember we can plot for a season and recognise that
   when checking for isCompareIntervals in PowerHist.

.. fixes a SEGV when looking at a histogram in the trends
   view whilst compare intervals is active in ride view.
This commit is contained in:
Mark Liversedge
2014-01-16 22:55:04 +00:00
parent bbb3a1ddc5
commit f06c5d0624
3 changed files with 9 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ HistogramWindow::HistogramWindow(Context *context, bool rangemode) : GcChartWind
// plot
QVBoxLayout *vlayout = new QVBoxLayout;
vlayout->setSpacing(10);
powerHist = new PowerHist(context);
powerHist = new PowerHist(context, rangemode);
vlayout->addWidget(powerHist);
setChartLayout(vlayout);