mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Fix FIT export SEGV on manual rides
.. or rides which contain no datapoints.
This commit is contained in:
@@ -3132,9 +3132,10 @@ void write_activity(QByteArray *array, const RideFile *ride) {
|
|||||||
value = 1;
|
value = 1;
|
||||||
write_int8(array, value);
|
write_int8(array, value);
|
||||||
|
|
||||||
value = ride->startTime().toTime_t() + ride->dataPoints().last()->secs;
|
if (ride->dataPoints().last()) {
|
||||||
write_int32(array, value, true);
|
value = ride->startTime().toTime_t() + ride->dataPoints().last()->secs;
|
||||||
|
write_int32(array, value, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_record(QByteArray *array, const RideFile *ride, bool withAlt, bool withWatts, bool withHr, bool withCad ) {
|
void write_record(QByteArray *array, const RideFile *ride, bool withAlt, bool withWatts, bool withHr, bool withCad ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user