Fixed a bug in the plugin overlay's number validator.

This commit is contained in:
casey langen 2018-08-25 16:41:44 -07:00
parent 93824b89d8
commit a1728851c8

View File

@ -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;
}