From bb94e386d823facb278d14f2021e98b15e058a00 Mon Sep 17 00:00:00 2001
From: Vojtech Bubnik <bubnikv@gmail.com>
Date: Fri, 14 Apr 2023 17:25:07 +0200
Subject: [PATCH] =?UTF-8?q?Fixed=20SPE-1451=20Branch=20Diameter=20=3D=200?=
 =?UTF-8?q?=20or=201xxxx;=C2=A0result:=20slicer=20crash=20Tip=20Diameter?=
 =?UTF-8?q?=20=3D=200=20or=201xxxx;;=C2=A0result:=20slicer=20crash=20fixed?=
 =?UTF-8?q?=20by=20limiting=20the=20diameters=20to=200.1=20..=20100mm?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/libslic3r/PrintConfig.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index 2d5a3b150..d48f18aa5 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -2908,7 +2908,8 @@ void PrintConfigDef::init_fff_params()
     // TRN PrintSettings: "Organic supports" > "Tip Diameter"
     def->tooltip = L("Branch tip diameter for organic supports.");
     def->sidetext = L("mm");
-    def->min = 0;
+    def->min = 0.1f;
+    def->max = 100.f;
     def->mode = comAdvanced;
     def->set_default_value(new ConfigOptionFloat(0.8));
 
@@ -2919,7 +2920,8 @@ void PrintConfigDef::init_fff_params()
     def->tooltip = L("The diameter of the thinnest branches of organic support. Thicker branches are more sturdy. "
                      "Branches towards the base will be thicker than this.");
     def->sidetext = L("mm");
-    def->min = 0;
+    def->min = 0.1f;
+    def->max = 100.f;
     def->mode = comAdvanced;
     def->set_default_value(new ConfigOptionFloat(2));