0001-SEGV-on-Overview-Chart.patch 665 B

1234567891011121314151617181920212223
  1. From 372dd5c14415885c8808c4ad4729cb39ae717db0 Mon Sep 17 00:00:00 2001
  2. From: Mark Liversedge <liversedge@gmail.com>
  3. Date: Mon, 13 Jan 2020 20:21:00 +0000
  4. Subject: SEGV on Overview Chart
  5. .. when no rides available on new user.
  6. Fixes #3295
  7. diff --git a/src/Charts/OverviewWindow.cpp b/src/Charts/OverviewWindow.cpp
  8. index bfbd31432..7aa0792df 100644
  9. --- a/src/Charts/OverviewWindow.cpp
  10. +++ b/src/Charts/OverviewWindow.cpp
  11. @@ -558,6 +558,8 @@ static const QStringList timeInZonesWBAL = QStringList()
  12. void
  13. Card::setData(RideItem *item)
  14. {
  15. + if (item == NULL || item->ride() == NULL) return;
  16. +
  17. // use ride colors in painting?
  18. ridecolor = item->color;