mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19:57 +00:00
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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user