Browse Source

Fix incorrect type validation

QGC4.4
DonLakeFlyer 7 years ago
parent
commit
c62a279b25
  1. 2
      src/MissionManager/SurveyComplexItem.cc

2
src/MissionManager/SurveyComplexItem.cc

@ -159,7 +159,7 @@ bool SurveyComplexItem::_loadV4(const QJsonObject& complexObject, int sequenceNu
{ ComplexMissionItem::jsonComplexItemTypeKey, QJsonValue::String, true }, { ComplexMissionItem::jsonComplexItemTypeKey, QJsonValue::String, true },
{ _jsonEntryPointKey, QJsonValue::Double, true }, { _jsonEntryPointKey, QJsonValue::Double, true },
{ _jsonGridAngleKey, QJsonValue::Double, true }, { _jsonGridAngleKey, QJsonValue::Double, true },
{ _jsonFlyAlternateTransectsKey, QJsonValue::Double, false }, { _jsonFlyAlternateTransectsKey, QJsonValue::Bool, false },
}; };
if (!JsonHelper::validateKeys(complexObject, keyInfoList, errorString)) { if (!JsonHelper::validateKeys(complexObject, keyInfoList, errorString)) {
return false; return false;

Loading…
Cancel
Save