Commit b4595a12 authored by Paul Chavent's avatar Paul Chavent

Fix distance to next waypoint widget in QuickView.

This patch fixes a bug that display 0 for distances to waypoint more
than 10km.

Besides that, it also homogenize the naming of the label to
"distToWaypoint" instead of "distToWP". Old configuration files (in
home directory), should be hacked or removed in order to see this
change.
Signed-off-by: 's avatarPaul Chavent <paul.chavent@onera.fr>
parent 88ddfc41
......@@ -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