CP rangemode plot effort logic fix

.. to now consider the ride intervals when plotting
   for a date range!
This commit is contained in:
Mark Liversedge
2015-06-03 15:20:27 +01:00
parent 1a7ea91efd
commit d2a2b4b9e0

View File

@@ -1271,8 +1271,10 @@ void
CPPlot::plotEfforts()
{
// only for power, if not already plotted and there are actually some efforts
if (criticalSeries != CriticalPowerWindow::watts || effortCurve || !showEffort ||
context->currentRideItem()->intervals(RideFileInterval::EFFORT).count() ==0) return;
if (criticalSeries != CriticalPowerWindow::watts || effortCurve || !showEffort) return;
// nothing to plot when plotting rides
if (!rangemode && context->currentRideItem()->intervals(RideFileInterval::EFFORT).count() ==0) return;
QwtSymbol *sym = new QwtSymbol;
sym->setStyle(QwtSymbol::Ellipse);