mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Fix SRM interval start/end
While the last patch for misaligned SRM Intervals did fix the out of bounds indices (and thereby fixed the crash), it got the start/end swapping wrong. In other words: It swapped start/end where it shouldn't and therefore broke all interval handling.
This commit is contained in:
committed by
Mark Liversedge
parent
0e5e5206a2
commit
59ae5fc537
@@ -129,7 +129,7 @@ RideFile *SrmFileReader::openRideFile(QFile &file, QStringList &errorStrings) co
|
||||
if( start < 1 ) start = 1;
|
||||
|
||||
// data fixup: some srmwin versions wrote markers with start > end
|
||||
if( end > start ){
|
||||
if( end < start ){
|
||||
markers[i].start = end;
|
||||
markers[i].end = start;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user