mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-01-02 14:50:01 +01:00
use float instead of int when reading Y axis json
This commit is contained in:
parent
57866ec7da
commit
583349e3ec
|
|
@ -192,9 +192,9 @@ void TraceXYPlot::fromJSON(nlohmann::json j)
|
|||
}
|
||||
auto yauto = jY[i].value("autorange", true);
|
||||
auto ylog = jY[i].value("log", false);
|
||||
auto ymin = jY[i].value("min", -120);
|
||||
auto ymax = jY[i].value("max", 20);
|
||||
auto ydiv = jY[i].value("div", 10);
|
||||
auto ymin = jY[i].value("min", -120.0);
|
||||
auto ymax = jY[i].value("max", 20.0);
|
||||
auto ydiv = jY[i].value("div", 10.0);
|
||||
setYAxis(i, ytype, ylog, yauto, ymin, ymax, ydiv);
|
||||
for(unsigned int hash : jY[i]["traces"]) {
|
||||
// attempt to find the traces with this hash
|
||||
|
|
|
|||
Loading…
Reference in a new issue