diff --git a/src/RideEditor.cpp b/src/RideEditor.cpp index c5b470461..6b254173b 100644 --- a/src/RideEditor.cpp +++ b/src/RideEditor.cpp @@ -25,6 +25,9 @@ #include #include +// for strtod +#include + // used to make a lookup string for row/col anomalies static QString xsstring(int x, RideFile::SeriesType series) { @@ -820,7 +823,11 @@ RideEditor::getPaste(QVector >&cells, QStringList &seps, QString cells.resize(row+1); foreach (QString token, line.split(sep)) { cells[row].resize(col+1); - cells[row][col] = token.toDouble(); + + // use strtod to get better precision + char *p; + cells[row][col] = strtod(token.toLatin1(), &p); + col++; // if there are more cols than in the