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:
Rainer Clasen
2010-11-01 23:29:08 +01:00
committed by Mark Liversedge
parent 0e5e5206a2
commit 59ae5fc537

View File

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