From 8c23678fa0d33053651ce2ed95c0e0922e267ad7 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Thu, 15 Jul 2021 09:55:25 +0200 Subject: [PATCH] Limited brim width to 200 mm (larger values make slicer hang or crash due to arithmetic overflow) --- src/libslic3r/PrintConfig.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index d91770d77..3c554012d 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -462,6 +462,7 @@ void PrintConfigDef::init_fff_params() def->tooltip = L("Horizontal width of the brim that will be printed around each object on the first layer."); def->sidetext = L("mm"); def->min = 0; + def->max = 200; def->mode = comSimple; def->set_default_value(new ConfigOptionFloat(0));