From a1728851c80553815c24b8f2ad4c646be18756cd Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 25 Aug 2018 16:41:44 -0700 Subject: [PATCH] Fixed a bug in the plugin overlay's number validator. --- src/musikcube/app/overlay/PluginOverlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/musikcube/app/overlay/PluginOverlay.cpp b/src/musikcube/app/overlay/PluginOverlay.cpp index 5ccc36398..aa3a5f7b4 100644 --- a/src/musikcube/app/overlay/PluginOverlay.cpp +++ b/src/musikcube/app/overlay/PluginOverlay.cpp @@ -236,7 +236,7 @@ class SchemaAdapter: public ScrollAdapterBase { virtual bool IsValid(const std::string& input) const override { try { - int result = std::stoi(input); + double result = std::stod(input); if (bounded(minimum, maximum) && (result < minimum || result > maximum)) { return false; }