From 59ae5fc5370b9924396360ffae4846c4cb83a0ae Mon Sep 17 00:00:00 2001 From: Rainer Clasen Date: Mon, 1 Nov 2010 23:29:08 +0100 Subject: [PATCH] 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. --- src/SrmRideFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SrmRideFile.cpp b/src/SrmRideFile.cpp index a3d8ec69b..23a18d2e7 100644 --- a/src/SrmRideFile.cpp +++ b/src/SrmRideFile.cpp @@ -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 {