diff --git a/src/frontend/qt_sdl/Config.cpp b/src/frontend/qt_sdl/Config.cpp index 7d5331fc..0163dc87 100644 --- a/src/frontend/qt_sdl/Config.cpp +++ b/src/frontend/qt_sdl/Config.cpp @@ -632,7 +632,7 @@ void Table::SetString(const std::string& path, const std::string& val) void Table::SetDouble(const std::string& path, double val) { toml::value& tval = ResolvePath(path); - tval = val; + tval = toml::value(val, {.prec=10}); } toml::value& Table::ResolvePath(const std::string& path)