Commit 3e7e5a47 authored by Valentin Platzgummer's avatar Valentin Platzgummer

nan altitude upload problem after loading complex mission item solved, appimage updated

parent c9d3a49d
......@@ -332,8 +332,7 @@ bool MeasurementComplexItem::load(const QJsonObject &complexObject,
const auto jsonVariant = valueRef.toArray();
Variant variant;
QString e;
if (JsonHelper::loadGeoCoordinateArray(jsonVariant, false, variant,
e)) {
if (JsonHelper::loadGeoCoordinateArray(jsonVariant, true, variant, e)) {
if (variant.size() > 0) {
variantVector.append(std::move(variant));
} else {
......@@ -534,9 +533,9 @@ void MeasurementComplexItem::save(QJsonArray &planItems) {
for (auto const &route : _variantVector) {
QJsonValue variant;
if (route.size() > 0) {
JsonHelper::saveGeoCoordinateArray(route, false, variant);
JsonHelper::saveGeoCoordinateArray(route, true, variant);
} else {
JsonHelper::saveGeoCoordinateArray(_route, false, variant);
JsonHelper::saveGeoCoordinateArray(_route, true, variant);
}
variantsArray.append(variant);
}
......
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