Disable Metric Histogram Compare

.. to avoid errors until we implement
   histogram metric compare date range
This commit is contained in:
Mark Liversedge
2014-01-18 16:21:49 +00:00
parent 8c72f29585
commit c7f24e9b45

View File

@@ -301,6 +301,9 @@ PowerHist::refreshHRZoneLabels()
void
PowerHist::recalcCompare()
{
// not for metric plots sonny
if (source == Metric) return;
// Set curves .. they will always have been created
// in setDataFromCompareIntervals, but no samples set
@@ -964,6 +967,9 @@ PowerHist::setData(RideFileCache *cache)
void
PowerHist::setDataFromCompare()
{
// not for metric plots sonny
if (source == Metric) return;
double width = appsettings->value(this, GC_LINEWIDTH, 2.0).toDouble();
// set all the curves based upon whats in the compare intervals array