mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user