mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Merge pull request #1325 from amtriathlon/master
Disabled pause expansion in lap swimming .tcx files when Smart Recording...
This commit is contained in:
@@ -262,7 +262,8 @@ TcxParser::endElement( const QString&, const QString&, const QString& qName)
|
||||
last_time = time;
|
||||
} else if (qName == "Lap") {
|
||||
// for pool swimming, laps with distance 0 are pauses, without trackpoints
|
||||
if (swim == Swim && distance == 0) {
|
||||
// expand only if Smart Recording is enabled
|
||||
if (swim == Swim && distance == 0 && isGarminSmartRecording.toInt()) {
|
||||
// fill in the pause, partially if too long
|
||||
for(int i = 1; i <= round(lapSecs) && i <= 10*GarminHWM.toInt(); i++)
|
||||
rideFile->appendPoint(secs + i,
|
||||
|
||||
Reference in New Issue
Block a user