]> sigrok.org Git - pulseview.git/commitdiff
AnalogSignal: Fix storing of autoranging setting
authorRamon Felder <redacted>
Mon, 5 Sep 2022 16:23:03 +0000 (18:23 +0200)
committerSoeren Apel <redacted>
Sat, 8 Oct 2022 19:40:03 +0000 (21:40 +0200)
pv/views/trace/analogsignal.cpp

index ba5adebf90fab3f7562db305f1f49d38276d1801..8c0dacd26fa52f9579c00efb4124a2f6f6afa9bf 100644 (file)
@@ -139,7 +139,7 @@ std::map<QString, QVariant> AnalogSignal::save_settings() const
        result["neg_vdivs"] = neg_vdivs_;
        result["scale_index"] = scale_index_;
        result["display_type"] = display_type_;
-       result["autoranging"] = pos_vdivs_;
+       result["autoranging"] = autoranging_;
        result["div_height"] = div_height_;
 
        return result;