Commit e0614431 authored by DoinLakeFlyer's avatar DoinLakeFlyer

Prevent having items with the same sequence number when the item is incomplete

parent a41cceec
......@@ -748,6 +748,9 @@ int TransectStyleComplexItem::lastSequenceNumber(void) const
if (_loadedMissionItems.count()) {
// We have stored mission items, just use those
return _sequenceNumber + _loadedMissionItems.count() - 1;
} else if (_transects.count() == 0) {
// Polygon has not yet been set so we just return back a one item complex item for now
return _sequenceNumber;
} else {
// We have to determine from transects
int itemCount = 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