mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Fix lap number issue
.. lap number jumps around when playing a crs file
This commit is contained in:
committed by
Mark Liversedge
parent
27216539d2
commit
7c84a1e905
@@ -585,7 +585,8 @@ ErgFile::gradientAt(long x, int &lapnum)
|
||||
if (x>=Laps.at(i).x) lap += 1;
|
||||
}
|
||||
lapnum = lap;
|
||||
}
|
||||
|
||||
} else lapnum = 0;
|
||||
|
||||
// find right section of the file
|
||||
while (x < Points.at(leftPoint).x || x > Points.at(rightPoint).x) {
|
||||
|
||||
Reference in New Issue
Block a user