From afca744d37f1c6fc38a9e143b9d65419f1ae8c2b Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Mon, 24 May 2021 09:33:27 +0200 Subject: [PATCH] Fixed a bug when reverting to an old value with comma-separated doubles --- src/slic3r/GUI/GUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index f4dbcfc43..c6cb05fac 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -115,7 +115,7 @@ void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt str.pop_back(); percent = true; } - double val = string_to_double_decimal_point(str); + double val = std::stod(str); // locale-dependent (on purpose - the input is the actual content of the field) config.set_key_value(opt_key, new ConfigOptionFloatOrPercent(val, percent)); break;} case coPercent: