Bugfix duplicate temp on summary

Making the column list a static array was a bad
idea since we append to it every time we summarise
a ride with temperature!

Fixes #344.
This commit is contained in:
Mark Liversedge
2012-11-13 18:23:49 +00:00
parent 274662a108
commit b6b3f5dd39

View File

@@ -158,13 +158,13 @@ RideSummaryWindow::htmlSummary() const
<< "total_work"
<< "elevation_gain";
static QStringList averageColumn = QStringList() // not const as modified below..
QStringList averageColumn = QStringList() // not const as modified below..
<< "average_speed"
<< "average_power"
<< "average_hr"
<< "average_cad";
static QStringList maximumColumn = QStringList() // not const as modified below..
QStringList maximumColumn = QStringList() // not const as modified below..
<< "max_speed"
<< "max_power"
<< "max_heartrate"