mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-07 09:54:55 +00:00
Fixed a bug in the plugin overlay's number validator.
This commit is contained in:
parent
93824b89d8
commit
a1728851c8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user