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:
parent
2a4afa042c
commit
4b3327fcb1
@ -42,7 +42,7 @@ static QString capitalized(const QString &str)
|
||||
static QByteArray ft2m(const QByteArray &str)
|
||||
{
|
||||
bool ok;
|
||||
int number = str.toInt(&ok);
|
||||
double number = str.toDouble(&ok);
|
||||
return ok ? QByteArray::number(qRound(number * 0.3048)) : str;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user