mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Fixed so that cadence is 0, not 2147483648, in the Ride Summary in a ride with
no cadence data.
This commit is contained in:
@@ -121,7 +121,8 @@ RideItem::htmlSummary()
|
||||
.arg((unsigned) round(total_hr / secs_hr));
|
||||
summary += QString("<tr><td>Average cadence:</td>"
|
||||
"<td align=\"right\">%1</td></tr>")
|
||||
.arg((unsigned) round(total_cad / secs_cad));
|
||||
.arg((unsigned) ((secs_cad == 0) ? 0
|
||||
: round(total_cad / secs_cad)));
|
||||
summary += "</table>";
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user