1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Values to convert from ft to m ma also be decimal numbers

This commit is contained in:
Martin Tůma 2024-08-27 22:03:12 +02:00
parent 2a4afa042c
commit 4b3327fcb1

View File

@ -42,7 +42,7 @@ static QString capitalized(const QString &str)
static QByteArray ft2m(const QByteArray &str) static QByteArray ft2m(const QByteArray &str)
{ {
bool ok; bool ok;
int number = str.toInt(&ok); double number = str.toDouble(&ok);
return ok ? QByteArray::number(qRound(number * 0.3048)) : str; return ok ? QByteArray::number(qRound(number * 0.3048)) : str;
} }