From a8ab437dab2075b7a27fec907014e9cc7434f260 Mon Sep 17 00:00:00 2001 From: tony Date: Thu, 13 Feb 2025 13:36:51 -0700 Subject: [PATCH] fix save of EntranceAltitude --- src/MissionManager/StructureScanComplexItem.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MissionManager/StructureScanComplexItem.cc b/src/MissionManager/StructureScanComplexItem.cc index fc843abd482..694d1726aa4 100644 --- a/src/MissionManager/StructureScanComplexItem.cc +++ b/src/MissionManager/StructureScanComplexItem.cc @@ -241,7 +241,7 @@ bool StructureScanComplexItem::load(const QJsonObject& complexObject, int sequen _layersFact.setRawValue (complexObject[layersName].toDouble()); _structureHeightFact.setRawValue (complexObject[structureHeightName].toDouble()); _startFromTopFact.setRawValue (complexObject[startFromTopName].toBool()); - _entranceAltFact.setRawValue (complexObject[startFromTopName].toDouble()); + _entranceAltFact.setRawValue (complexObject[_entranceAltName].toDouble()); _gimbalPitchFact.setRawValue (complexObject[gimbalPitchName].toDouble()); if (!_structurePolygon.loadFromJson(complexObject, true /* required */, errorString)) {