#209 coPercent uses 100 as mult and not 1 like for coPercentAndFloat

see coPercents, it's obvious.
This commit is contained in:
supermerill 2020-05-03 20:08:51 +02:00
parent 387f88dfb0
commit 0d8d386c72

View File

@ -4310,6 +4310,11 @@ std::string FullPrintConfig::validate()
break; break;
} }
case coPercent: case coPercent:
{
auto* fopt = static_cast<const ConfigOptionPercent*>(opt);
out_of_range = fopt->get_abs_value(100) < optdef->min || fopt->get_abs_value(100) > optdef->max;
break;
}
case coFloatOrPercent: case coFloatOrPercent:
{ {
auto *fopt = static_cast<const ConfigOptionPercent*>(opt); auto *fopt = static_cast<const ConfigOptionPercent*>(opt);