From 0d8d386c725cc24d4e88ec8941d98e400875b315 Mon Sep 17 00:00:00 2001 From: supermerill Date: Sun, 3 May 2020 20:08:51 +0200 Subject: [PATCH] #209 coPercent uses 100 as mult and not 1 like for coPercentAndFloat see coPercents, it's obvious. --- src/libslic3r/PrintConfig.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 6b60567dc..c89e3bebd 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -4310,6 +4310,11 @@ std::string FullPrintConfig::validate() break; } case coPercent: + { + auto* fopt = static_cast(opt); + out_of_range = fopt->get_abs_value(100) < optdef->min || fopt->get_abs_value(100) > optdef->max; + break; + } case coFloatOrPercent: { auto *fopt = static_cast(opt);