Fixed so that cadence is 0, not 2147483648, in the Ride Summary in a ride with

no cadence data.
This commit is contained in:
Sean C. Rhea
2006-09-23 15:56:24 +00:00
parent 5652db6494
commit 1ef0903826

View File

@@ -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 {