Unverified Commit 8cf72f18 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8733 from DonLakeFlyer/OkToAddLand

Fix logic of when adding Landing item is allowed
parents f48f8c8c c2ced086
......@@ -2341,13 +2341,15 @@ void MissionController::setCurrentPlanViewSeqNum(int sequenceNumber, bool force)
if (currentSeqNumber == sequenceNumber && _isROIBeginItem(simpleItem)) {
_isROIBeginCurrentItem = true;
}
}
if (simpleItem->specifiesCoordinate() && !simpleItem->isStandaloneCoordinate()) {
if (viIndex != 0) {
// Complex items are assumed to be fly through
if (!simpleItem || (simpleItem->specifiesCoordinate() && !simpleItem->isStandaloneCoordinate())) {
lastFlyThroughSeqNum = currentSeqNumber;
}
}
if (currentSeqNumber == sequenceNumber) {
pVI->setIsCurrentItem(true);
pVI->setHasCurrentChildItem(false);
......
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