From 4648bbd3cbe1256ad666b7f247d318a8c2565523 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 d91770d77fa..3c554012dea 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));