check if the PTA exists
This commit is contained in:
@@ -558,10 +558,16 @@ void PlugIn::OnGetTagItem(EuroScopePlugIn::CFlightPlan flightPlan, EuroScopePlug
|
||||
}
|
||||
case TagItemElement::PlannedTimeOfArrival:
|
||||
{
|
||||
if (this->m_inbounds.cend() != it)
|
||||
message = UtcTime::timeToString(it->second.pta(), "%H:%M");
|
||||
else if (true == forced || true == planExpected)
|
||||
if (this->m_inbounds.cend() != it) {
|
||||
const auto pta = it->second.pta();
|
||||
if (UtcTime::Point() == pta)
|
||||
message = "??:??";
|
||||
else
|
||||
message = UtcTime::timeToString(it->second.pta(), "%H:%M");
|
||||
}
|
||||
else if (true == forced || true == planExpected) {
|
||||
message = "??:??";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TagItemElement::DeltaTime:
|
||||
|
||||
Reference in New Issue
Block a user