From c7f24e9b45075fb385cd47fc51ec4e698fe5fb6e Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 18 Jan 2014 16:21:49 +0000 Subject: [PATCH] Disable Metric Histogram Compare .. to avoid errors until we implement histogram metric compare date range --- src/PowerHist.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/PowerHist.cpp b/src/PowerHist.cpp index b0ba82904..2ab7612e4 100644 --- a/src/PowerHist.cpp +++ b/src/PowerHist.cpp @@ -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