Fix SEGV on CP picker in Compare Mode

We still need to fix the CP chart picker and hover
to use the range bests when in compare mode.
This commit is contained in:
Mark Liversedge
2013-12-31 12:25:53 +00:00
parent 56206d1fc6
commit a6c389dcbc
2 changed files with 4 additions and 1 deletions

View File

@@ -882,7 +882,7 @@ CriticalPowerWindow::updateCpint(double minutes)
{
QString label;
int index = (int) ceil(minutes * 60);
if (index >= 0 && cpintPlot->getBests().count() > index) {
if (index >= 0 && cpintPlot->bests && cpintPlot->getBests().count() > index) {
QDate date = cpintPlot->getBestDates()[index];
double value = cpintPlot->getBests()[index];