Commit c39824f5 authored by Alexey's avatar Alexey

Fixed suspicios if-expression

parent 79dbcc0d
......@@ -167,14 +167,10 @@ void VisualMissionItem::_updateTerrainAltitude(void)
return;
}
if (!_flyView && specifiesCoordinate() && coordinate().isValid()) {
if (specifiesCoordinate()) {
if (coordinate().isValid()) {
// We use a timer so that any additional requests before the timer fires result in only a single request
_updateTerrainTimer.start();
}
} else {
_terrainAltitude = qQNaN();
}
// We use a timer so that any additional requests before the timer fires result in only a single request
_updateTerrainTimer.start();
} else {
_terrainAltitude = qQNaN();
}
}
......
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