From 5109f610d2fbad74c1505157f47f78d543b73a01 Mon Sep 17 00:00:00 2001 From: Mario Kruselj Date: Tue, 20 Dec 2022 20:53:28 +0100 Subject: [PATCH] Fix crash with note name typein on freq parameters Closes #6755 --- src/common/Parameter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Parameter.cpp b/src/common/Parameter.cpp index aeb6871f567..e9d75ae8667 100644 --- a/src/common/Parameter.cpp +++ b/src/common/Parameter.cpp @@ -4319,7 +4319,7 @@ bool Parameter::set_value_from_string_onto(const std::string &s, pdata &ontoThis return true; } - auto nv = std::stof(s); + auto nv = std::atof(s.c_str()); switch (displayType) {