Commit 1ca898b7 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #577 from polch/fix-dist-to-waypoint

Fix distance to next waypoint widget in QuickView.
parents 88ddfc41 b4595a12
......@@ -32,7 +32,7 @@ UASQuickView::UASQuickView(QWidget *parent) : QWidget(parent)
valueEnabled("altitudeAMSL");
valueEnabled("altitudeRelative");
valueEnabled("groundSpeed");
valueEnabled("distToWP");
valueEnabled("distToWaypoint");
}
QAction *action = new QAction("Add/Remove Items",this);
......
......@@ -51,7 +51,7 @@ void UASQuickViewTextItem::setValue(double value)
{
valueLabel->setText(QString::number(value,'f',1));
}
else if (value >= 100000 || value <= -100000)
else
{
valueLabel->setText(QString::number(value,'f',0));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment